Part Number Hot Search : 
CS43L43 MC14468P MFWABSS GS1085CM RQJ030 856331 H11B255 FEPB16BT
Product Description
Full Text Search
 

To Download RCM3200 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 RabbitCore RCM3200
C-Programmable Module with Ethernet
User's Manual
019-0118 * 031205-F
RabbitCore RCM3200 User's Manual
Part Number 019-0118 * 031205-F * Printed in U.S.A. (c)2002-2003 Z-World Inc. * All rights reserved. Z-World reserves the right to make changes and improvements to its products without providing notice.
Trademarks
Rabbit and Rabbit 3000 are registered trademarks of Rabbit Semiconductor. RabbitCore is a trademark of Rabbit Semiconductor. Dynamic C is a registered trademark of Z-World Inc.
Z-World, Inc.
2900 Spafford Street Davis, California 95616-6800 USA Telephone: (530) 757-3737 Fax: (530) 757-3792 www.zworld.com
Rabbit Semiconductor
2932 Spafford Street Davis, California 95616-6800 USA Telephone: (530) 757-8400 Fax: (530) 757-8402 www.rabbitsemiconductor.com
RabbitCore RCM3200
TABLE OF CONTENTS
Chapter 1. Introduction 1
1.1 RCM3200 Features ...............................................................................................................................1 1.2 Advantages of the RCM3200 ...............................................................................................................2 1.3 Development and Evaluation Tools......................................................................................................2 1.4 How to Use This Manual ......................................................................................................................3 1.4.1 Additional Product Information ....................................................................................................3 1.4.2 Online Documentation ..................................................................................................................3
Chapter 2. Hardware Reference
5
2.1 RCM3200 Digital Inputs and Outputs ..................................................................................................6 2.1.1 Memory I/O Interface .................................................................................................................11 2.1.2 Other Inputs and Outputs ............................................................................................................11 2.2 Serial Communication ........................................................................................................................12 2.2.1 Serial Ports ..................................................................................................................................12 2.2.2 Ethernet Port ...............................................................................................................................12 2.2.3 Programming Port .......................................................................................................................13 2.2.3.1 Alternate Uses of the Programming Port ........................................................................... 13 2.3 Programming Cable ............................................................................................................................14 2.3.1 Changing from Program Mode to Run Mode .............................................................................14 2.3.2 Changing from Run Mode to Program Mode .............................................................................14 2.4 Other Hardware...................................................................................................................................15 2.4.1 Clock Doubler .............................................................................................................................15 2.4.2 Spectrum Spreader ......................................................................................................................15 2.5 Memory...............................................................................................................................................16 2.5.1 SRAM .........................................................................................................................................16 2.5.2 Flash EPROM .............................................................................................................................16 2.5.3 Dynamic C BIOS Source Files ...................................................................................................16
Chapter 3. Software Reference
17
3.1 More About Dynamic C .....................................................................................................................17 3.2 Dynamic C Functions .........................................................................................................................18 3.2.1 Board Initialization .....................................................................................................................18 3.2.2 Digital I/O ...................................................................................................................................19 3.2.3 Serial Communication Drivers....................................................................................................19 3.2.4 TCP/IP Drivers............................................................................................................................19 3.3 Sample Programs ................................................................................................................................20 3.4 Upgrading Dynamic C ........................................................................................................................21 3.4.1 Add-On Modules.........................................................................................................................21
Appendix A. RCM3200 Specifications
23
A.1 Electrical and Mechanical Characteristics .........................................................................................24 A.1.1 Headers.......................................................................................................................................27 A.1.2 Physical Mounting .....................................................................................................................27 A.2 Bus Loading .......................................................................................................................................28 A.3 Rabbit 3000 DC Characteristics.........................................................................................................31 A.4 I/O Buffer Sourcing and Sinking Limit .............................................................................................32 A.5 Conformal Coating.............................................................................................................................33 A.6 Jumper Configurations.......................................................................................................................34
User's Manual
Appendix B. Prototyping Board
35
B.1 Mechanical Dimensions and Layout ................................................................................................. 36 B.2 Power Supply..................................................................................................................................... 37 B.3 Using the Prototyping Board ............................................................................................................. 38 B.3.1 Adding Other Components ........................................................................................................ 39 B.3.2 Measuring Current Draw ........................................................................................................... 39 B.3.3 Other Prototyping Board Modules and Options ........................................................................ 39
Appendix C. LCD/Keypad Module
41
C.1 Specifications..................................................................................................................................... 41 C.2 Contrast Adjustments for All Boards ................................................................................................ 43 C.3 Keypad Labeling................................................................................................................................ 44 C.4 Header Pinouts................................................................................................................................... 45 C.4.1 I/O Address Assignments .......................................................................................................... 45 C.5 Mounting LCD/Keypad Module on the Prototyping Board.............................................................. 46 C.6 Bezel-Mount Installation ................................................................................................................... 47 C.6.1 Connect the LCD/Keypad Module to Your Prototyping Board ................................................ 49 C.7 LCD/Keypad Module Function APIs ................................................................................................ 50 C.7.1 LEDs .......................................................................................................................................... 50 C.7.2 LCD Display .............................................................................................................................. 51 C.7.3 Keypad ....................................................................................................................................... 67 C.8 Sample Programs............................................................................................................................... 70
Appendix D. Power Supply
71
D.1 Power Supplies .................................................................................................................................. 71 D.1.1 Battery-Backup Circuits ............................................................................................................ 71 D.1.2 Reset Generator ......................................................................................................................... 72 D.2 Optional +5 V Output........................................................................................................................ 72
Appendix E. Programming Cable Appendix F. Motor Control Option
73 77
F.1 Overview ............................................................................................................................................ 77 F.2 Header J6............................................................................................................................................ 78 F.3 Using Parallel Port F .......................................................................................................................... 79 F.3.1 Parallel Port F Registers............................................................................................................. 79 F.4 PWM Outputs .................................................................................................................................... 82 F.5 PWM Registers .................................................................................................................................. 83 F.6 Quadrature Decoder ........................................................................................................................... 84
Notice to Users Index Schematics
87 89 91
RabbitCore RCM3200
1. INTRODUCTION
The RCM3200 RabbitCore module is designed to be the heart of embedded control systems. The RCM3200 features an integrated 10/100Base-T Ethernet port and provides for LAN and Internet-enabled systems to be built as easily as serial-communication systems.
The RCM3200 has a Rabbit 3000(R) microprocessor operating at 44.2 MHz, data and program execution SRAM, flash memory, two clocks (main oscillator and timekeeping), and the circuitry necessary for reset and management of battery backup of the Rabbit 3000's internal real-time clock and the data SRAM. Two 34-pin headers bring out the Rabbit 3000 I/O bus lines, parallel ports, and serial ports. The RCM3200 receives its +3.3 V power from the customer-supplied motherboard on which it is mounted. The RabbitCore RCM3200 can interface with all kinds of CMOScompatible digital devices through the motherboard.
1.1 RCM3200 Features
* Small size: 1.85" x 2.65" x 0.86" (47 mm x 67 mm x 22 mm) * Microprocessor: Rabbit 3000 running at 44.2 MHz * 52 parallel 5 V tolerant I/O lines: 44 configurable for I/O, 4 fixed inputs, 4 fixed outputs * Two additional digital inputs, two additional digital outputs * External reset input * Alternate I/O bus can be configured for 8 data lines and 6 address lines (shared with parallel I/O lines), I/O read/write * Ten 8-bit timers (six cascadable) and one 10-bit timer with two match registers * 512K flash memory, 512K program execution SRAM, 256K data SRAM * Real-time clock * Watchdog supervisor * Provision for customer-supplied backup battery via connections on header J2
User's Manual 1
* 10/100Base-T RJ-45 Ethernet port * 10-bit free-running PWM counter and four width registers * Two-channel Input Capture can be used to time input signals from various port pins * Two-channel Quadrature Decoder accepts inputs from external incremental encoder modules * Six CMOS-compatible serial ports: maximum asynchronous baud rate of 5.5 Mbps. Four ports are configurable as a clocked serial port (SPI), and two ports are configurable as SDLC/HDLC serial ports. * Supports 1.15 Mbps IrDA transceiver Appendix A, "RCM3200 Specifications," provides detailed specifications for the RCM3200.
1.2 Advantages of the RCM3200
* Fast time to market using a fully engineered, "ready to run" microprocessor core. * Competitive pricing when compared with the alternative of purchasing and assembling individual components. * Easy C-language program development and debugging * Program Download Utility and cloning board options for rapid production loading of programs. * Generous memory size allows large programs with tens of thousands of lines of code, and substantial data storage. * Integrated Ethernet port for network connectivity, royalty-free TCP/IP software.
1.3 Development and Evaluation Tools
A complete Development Kit, including a Prototyping Board and Dynamic C development software, is available for the RCM3200. The Development Kit puts together the essentials you need to design an embedded microprocessor-based system rapidly and efficiently. See the RabbitCore RCM3200 Getting Started Manual for complete information on the Development Kit.
2
RabbitCore RCM3200
1.4 How to Use This Manual
This user's manual is intended to give users detailed information on the RCM3200 module. It does not contain detailed information on the Dynamic C development environment or the TCP/IP software support for the integrated Ethernet port. Most users will want more detailed information on some or all of these topics in order to put the RCM3200 module to effective use. 1.4.1 Additional Product Information Introductory information about the RCM3200 and its associated Development Kit and Prototyping Board will be found in the printed RabbitCore RCM3200 Getting Started Manual, which is also provided on the accompanying CD-ROM in both HTML and Adobe PDF format. We recommend that any users unfamiliar with Z-World products, or those who will be using the Prototyping Board for initial evaluation and development, begin with at least a read-through of the Getting Started manual. In addition to the product-specific information contained in the RabbitCore RCM3200 Getting Started Manual and the RabbitCore RCM3200 User's Manual (this manual), several higher level reference manuals are provided in HTML and PDF form on the accompanying CD-ROM. Advanced users will find these references valuable in developing systems based on the RCM3200 modules: * Dynamic C User's Manual * Dynamic C Function Reference Manual * An Introduction to TCP/IP * Dynamic C TCP/IP User's Manual * Rabbit 3000 Microprocessor User's Manual 1.4.2 Online Documentation The online documentation is installed along with Dynamic C, and an icon for the documentation menu is placed on the workstation's desktop. Double-click this icon to reach the menu. If the icon is missing, use your browser to find and load default.htm in the docs folder, found in the Dynamic C installation folder. The latest versions of all documents are always available for free, unregistered download from our Web sites as well.
User's Manual
3
4
RabbitCore RCM3200
2. HARDWARE REFERENCE
Chapter 2 describes the hardware components and principal hardware subsystems of the RCM3200. Appendix A, "RCM3200 Specifications," provides complete physical and electrical specifications.
Figure 1 shows these Rabbit-based subsystems designed into the RCM3200.
32 kHz osc
22.1 MHz osc
SRAM Flash
RABBIT 3000
logic-level serial signal
Level converter
Ethernet
RabbitCore Module
RS-232, RS-485, IRDA serial communication drivers on motherboard
Figure 1. RCM3200 Subsystems
User's Manual
5
2.1 RCM3200 Digital Inputs and Outputs
The RCM3200 has 52 parallel I/O lines grouped in seven 8-bit ports available on headers J1 and J2. The 44 bidirectional I/O lines are located on pins PA0-PA7, PB0, PB2-PB7, PD2-PD7, PE0-PE1, PE3-PE7, PF0-PF7, and PG0-PG7. Figure 2 shows the RCM3200 pinouts for headers J1 and J2.
J1
GND PA7 PA5 PA3 PA1 PF3 PF1 PC0 PC2 PC4 PC6-TxA PG0 PG2 PD4 PD2 PD6 n.c. STATUS PA6 PA4 PA2 PA0 PF2 PF0 PC1 PC3 PC5 PC7-RxA PG1 PG3 PD5 PD3 PD7 n.c. /RES PB2 PB4 PB6 PF4 PF6 PE7 PE5 PE3 PE0 PG6 PG4 /IORD SMOD1 VRAM +3.3V n.c.
J2
PB0 PB3 PB5 PB7 PF5 PF7 PE6 PE4 PE1 PG7 PG5 /IOWR SMOD0 /RESET_IN VBAT_EXT GND GND
n.c. = not connected Note: These pinouts are as seen on the Bottom Side of the module.
Figure 2. RCM3200 Pinouts
The pinouts for the RCM3000, RCM3100, and RCM3200 are compatible. Visit the Web site for further information. Headers J1 and J2 are standard 2 x 34 headers with a nominal 2 mm pitch. An RJ-45 Ethernet jack is also included with the RCM3200 series.
The signals labeled PD2, PD3, PD6, and PD7 on header J1 (pins 29-32) and the pins that are not connected (pins 33-34 on header J1 and pin 33 on header J2) are reserved for future use.
6
RabbitCore RCM3200
Figure 3 shows the use of the Rabbit 3000 microprocessor ports in the RCM3200 modules.
PA0PA7
PB0, PB2PB7
PD4PD5
Port A
PC0, PC2, PC4 PC1, PC3, PC5 PG2, PG6 PG3, PG7 PC6 PB1, PC7, /RES 4 Ethernet signals
(Serial Ports B,C & D)
Port B
(+Ethernet Port)
Port D
Port C
RABBIT
3000
Real-Time Clock Watchdog 11 Timers Slave Port Clock Doubler
Port E Port F
(+Serial Ports)
PE0PE1, PE3PE7 PF0PF7 PG0PG1, PG4PG5 /RES_IN /IORD /RESET, /IOWR, STATUS SMODE0 SMODE1
(Serial Ports E & F)
Port G
Programming Port
(Serial Port A)
Port G
Ethernet Port
Misc. I/O Flash
RAM
Backup Battery Support
Figure 3. Use of Rabbit 3000 Ports
The ports on the Rabbit 3000 microprocessor used in the RCM3200 are configurable, and so the factory defaults can be reconfigured. Table 1 lists the Rabbit 3000 factory defaults and the alternate configurations.
User's Manual
7
Table 1. RCM3200 Pinout Configurations
Pin 1 2 Pin Name GND STATUS Output (Status) Output External data bus (ID0-ID7) Slave port data bus (SD0-SD7) QD2A QD2B QD1A CLKC QD1B CLKD TXD Serial Port D 16 17 18 Header J1 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 *
8
Default Use
Alternate Use
Notes
3-10
PA[7:0]
Parallel I/O
11 12 13 14 15
PF3 PF2 PF1 PF0 PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PG0 PG1 PG2 PG3 PD4 PD5 PD2 PD3 PD6 PD7 LNK_OUT ACT_OUT
Input/Output Input/Output Input/Output Input/Output Output Input Output Input Output Input Output Input Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Output Output
RXD TXC Serial Port C RXC TXB Serial Port B RXB TXA RXA TCLKF RCLKF TXF Serial Port F RXF ATXB ARXB TPOUT- * Ethernet transmit port TPOUT+ * TPIN- * Ethernet receive port TPIN+ * Max. current draw 1 mA (see Note 1) Serial Port A (programming port) Serial Clock F output Serial Clock F input
Pins 29-32 are reserved for future use.
RabbitCore RCM3200
Table 1. RCM3200 Pinout Configurations (continued)
Pin 1 2 3 4 5 6 7 8 9 Header J2 10 11 12 13 14 15 16 17 18 19 Pin Name /RES PB0 PB2 PB3 PB4 PB5 PB6 PB7 PF4 PF5 PF6 PF7 PE7 PE6 PE5 PE4 PE3 PE1 PE0 Default Use Reset output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Alternate Use Reset input CLKB IA0 /SWR IA1 /SRD IA2 SA0 IA3 SA1 IA4 IA5 /SLAVEATTN AQD1B PWM0 AQD1A PWM1 AQD2B PWM2 AQD2A PWM3 I7 /SCS I6 I5 INT1B I4 INT0B I3 I1 INT1A I0 INT0A I/O Strobe 1 Interrupt 1A I/O Strobe 0 Interrupt 0A External Address 0 Slave port write External Address 1 Slave port read External Address 2 Slave port Address 0 External Address 3 Slave port Address 1 External Address 4 External Address 5 Slave Attention Notes Reset output from Reset Generator
User's Manual
9
Table 1. RCM3200 Pinout Configurations (continued)
Pin 20 21 22 23 24 25 Pin Name PG7 PG6 PG5 PG4 /IOWR /IORD Default Use Input/Output Input/Output Input/Output Input/Output Output Input (0,0)--start executing at address zero (0,1)--cold boot from slave port (1,0)--cold boot from clocked Serial Port A SMODE0 =1, SMODE1 = 1 Cold boot from asynchronous Serial Port A at 2400 bps (programming cable connected) 28 29 30 31 32 33 34 /RESET_IN VRAM VBAT_EXT +3.3V GND n.c. GND Reserved for future use Input Output 3 V battery Input Input Input to Reset Generator See Notes below table Minimum battery voltage 2.85 V 3.15-3.45 V DC Alternate Use RXE Serial Port E TXE RCLKE TCLKE Serial Clock E input Serial Clock E ouput External write strobe External read strobe Notes
Notes
1. When using pins 33-34 on header J1 to drive LEDs, you must use an external buffer to drive these external LEDs. These pins are not connected on the RCM3220, which does not have the LEDs installed. 2. The VRAM voltage is temperature-dependent. If the VRAM voltage drops below about 1.2 V to 1.5 V, the contents of the battery-backed SRAM may be lost. If VRAM drops below 1.0 V, the 32 kHz oscillator could stop running. Pay careful attention to this voltage if you draw any current from this pin. Locations R45, R46, R53, R57, and R74 allow the population of 0 resistors (jumpers) that will be used to enable future options. These locations are currently unused.
10
Header J2
26-27
SMODE0, SMODE1
Also connected to programming cable
RabbitCore RCM3200
2.1.1 Memory I/O Interface The Rabbit 3000 address lines (A0-A19) and all the data lines (D0-D7) are routed internally to the onboard flash memory and SRAM chips. I/0 write (/IOWR) and I/0 read (/IORD) are available for interfacing to external devices. Parallel Port A can also be used as an external I/O data bus to isolate external I/O from the main data bus. Parallel Port B pins PB2-PB7 can also be used as an auxiliary address bus. When using the auxiliary I/O bus, you must add the following line at the beginning of your program.
#define PORTA_AUX_IO // required to enable auxiliary I/O bus
The STATUS output has three different programmable functions: 3. It can be driven low on the first op code fetch cycle. 4. It can be driven low during an interrupt acknowledge cycle. 5. It can also serve as a general-purpose output. 2.1.2 Other Inputs and Outputs Two status mode pins, SMODE0 and SMODE1, are available as inputs. The logic state of these two pins determines the startup procedure after a reset. /RESET_IN is an external input used to reset the Rabbit 3000 microprocessor and the RCM3200 memory. /RES is an output from the reset circuitry that can be used to reset other peripheral devices.
User's Manual
11
2.2 Serial Communication
The RCM3200 board does not have an RS-232 or an RS-485 transceiver directly on the board. However, an RS-232 or RS-485 interface may be incorporated on the board the RCM3200 is mounted on. For example, the Prototyping Board has a standard RS-232 transceiver chip. 2.2.1 Serial Ports There are six serial ports designated as Serial Ports A, B, C, D, E, and F. All six serial ports can operate in an asynchronous mode up to the baud rate of the system clock divided by 8. An asynchronous port can handle 7 or 8 data bits. A 9th bit address scheme, where an additional bit is sent to mark the first byte of a message, is also supported. Serial Ports A, B, C, and D can also be operated in the clocked serial mode. In this mode, a clock line synchronously clocks the data in or out. Either of the two communicating devices can supply the clock. Serial Ports E and F can also be configured as SDLC/HDLC serial ports. The IrDA protocol is also supported in SDLC format by these two ports. 2.2.2 Ethernet Port Figure 4 shows the pinout for the RJ-45 Ethernet port (J4). Note that some Ethernet connectors are numbered in reverse to the order used here.
ETHERNET
1 8
1. 2. 3. 6.
E_Tx+ E_Tx E_Rx+ E_Rx
RJ-45 Plug
RJ-45 Jack
Figure 4. RJ-45 Ethernet Port Pinout
Three LEDs are placed next to the RJ-45 Ethernet jack, one to indicate an Ethernet link (LNK), one to indicate Ethernet activity (ACT), and one to indicate when the RCM3200 is connected to a functioning 100Base-T network (SPD). The transformer/connector assembly ground is connected to the RCM3200 printed circuit board digital ground via a 0 resistor, R42, as shown in Figure 5. The RJ-45 connector is shielded to minimize EMI effects to/from the Ethernet signals.
12
Board Ground
RJ-45 Ethernet Plug
R42
Chassis Ground
Figure 5. Isolation Resistor R42
RabbitCore RCM3200
2.2.3 Programming Port Serial Port A has special features that allow it to cold-boot the system after reset. Serial Port A is also the port that is used for software development under Dynamic C. The RCM3200 has a 10-pin program header labeled J3. The Rabbit 3000 startup-mode pins (SMODE0, SMODE1) are presented to the programming port so that an externally connected device can force the RCM3200 to start up in an external bootstrap mode. The Rabbit 3000 Microprocessor User's Manual provides more information related to the bootstrap mode. The programming port is used to start the RCM3200 in a mode where it will download a program from the port and then execute the program. The programming port transmits information to and from a PC while a program is being debugged in-circuit. The RCM3200 can be reset from the programming port via the /RESET_IN line. The Rabbit 3000 status pin is also presented to the programming port. The status pin is an output that can be used to send a general digital signal. The clock line for Serial Port A is presented to the programming port, which makes synchronous serial communication possible. Programming may also be initiated through the motherboard to which the RCM3200 series module is plugged in to since the Serial Port A (PC6 and PC7), SMODE0, SMODE1, and /RESET_IN are available on headers J1 and J2 (see Table 1).
2.2.3.1 Alternate Uses of the Programming Port
The programming port may also be used as an application port with the DIAG connector on the programming cable. All three clocked Serial Port A signals are available as * a synchronous serial port * an asynchronous serial port, with the clock line usable as a general CMOS input * two general CMOS inputs and one general CMOS output. Two startup mode pins, SMODE0 and SMODE1, are available as general CMOS inputs after they are read during the initial boot-up. The logic state of these two pins is very important in determining the startup procedure after a reset. /RES_IN is an external input used to reset the Rabbit 3000 microprocessor. The status pin may also be used as a general CMOS output. See Appendix E, "Programming Cable," for more information.
User's Manual
13
2.3 Programming Cable
The RCM3200 is automatically in program mode when the PROG connector on the programming cable is attached, and is automatically in run mode when no programming cable is attached. The DIAG connector of the programming cable may be used on header J3 of the RCM3200 with the board operating in the run mode. This allows the programming port to be used as an application port. See Appendix E, "Programming Cable," for more information.
C15 L1 C13 D1
C11 C10
VBAT EXT /RES IN SM0 /IOWR PG5 PG7 PE1 PE4 PE6 PF7 PF5 PB7 PB5 PB3 PB0 J1
VRAM SM1 /IORD PG4 PG6 PE0 PE3 PE5 PE7 PF6 PF4 PB6 PB4 PB2 /RES
RN2
PD3 PD5 PG3 PG1 PD4 PC5 PC3 PC1 PF0 PF2 PA0 PA2 PA4 PA6 PE4 J3 C1
PD2 PD4 PG2 PG0 PD5 PC4 PC2 PC0 PF1 PF3 PA1 PA3 PA5 PA7 GND RCM1
RN4
R17
+5V
Battery
BT1
+3.3V
+3.3V
RCM3000 RABBITCORE J15
RC18
J14
UX10
SLAVE MASTER
RCM2
R74
RC23 C79 Y4
C75
C72
R44
RC11
RC2
UX2 C53
C49
GND GND
GND +5V J8
GND +5V
R42
C48
C45 C44 C43 R38
GND
/RES LCD
BD0
BD2
BD4
R28
C37 C36
C39
BPE3
BA2
BA0
+5V
BD1
BD3
BD5
BD7
GND
GND
C35
JP3
R15
C33
JP4
C32
C29
C28 C27
C30
C23
C20
C24
PG7 PE1 PE4 PE6 PF7 PF5 PB7 PB5 PB3 PB0
PE0 PE3 PE5 PE7 PF6 PF4 PB6 PB4 PB2 /RES
PC5 PC3 PC1 PF0 PF2 PA0 PA2 PA4 PA6 PE4
PC4 PC2 PC0 PF1 PF3
C4
R24
C19
C18
PROG
C17
C12
C16 C15
PA3
C4
C8
PA7 GND
RESET
S2
S3
RxC TxC
PG6
PG7
DIAG
PA5
J12
C6
J4
TxB RxB GND
J5
C7
RS-232
RESET
RESET RCM3200 when changing mode: Short out pins 2832 on header J2, OR Press RESET button (if using Prototyping Board), OR Remove, then reapply power after removing or attaching programming cable.
Figure 6. Switching Between Program Mode and Run Mode
2.3.1 Changing from Program Mode to Run Mode 1. Disconnect the programming cable from header J3 of the RCM3200. 2. Reset the RCM3200. You may do this as explained in Figure 6. The RCM3200 is now ready to operate in the run mode. 2.3.2 Changing from Run Mode to Program Mode 1. Attach the programming cable to header J3 on the RCM3200. 2. Reset the RCM3200. You may do this as explained in Figure 6. The RCM3200 is now ready to operate in the program mode.
14 RabbitCore RCM3200
R1
R8
C3
PA1
C5
J13
R7 R9
C1
R10 R14
U1
C9 C8
J3
R22
R23
U4
PG5
PG6
PD4
PD5
C31
/IOWR
PG4
PG1
PG0
D1
SM0
/IORD
PG3
PG2
R20
R19
R17 R18
U1 C5
U5
VBAT EXT /RES IN
R27
R31
JP5
VRAM SM1
PD3 PD5
PD2 PD4
TP1
R16
U6
R35
C42
R25
Y3
PD6
+3.3V +5V
RC6 RC7
+3.3V +5V
+5V
GND
+3.3V
PD7
BD6
BA3
BA1
Q1
GND
NC
PD1
PD0
+3.3V
+3.3V
UX4
Programming Cable
C9 U6 C16
DISPLAY BOARD
RC4
RC25 RC5 RC27 RC28 RC29 RC26
C14 U3
U3
R14
UX5 RC9
UX7
RCM3000 PROTOTYPING BOARD
J10 J7
To PC COM port
UX13
DS1
DS2
Colored edge
DISPLAY BOARD
DISPLAY BOARD
GND
C61
+5V
C47
R41
C59
C57
RC10
R47
L1
R21
RC12
R51 R49 R48
RC21
U8
UX3
C62
L2
RC13
RC16
R7
C64 C67
RC17
RC22
R58
C68
C71
RC14
RC1
C74
R2
R63 R64
J4
DS1
C3 R5
R67 R70
UX9
+5V
R69
R3
R72
R71
RC20
C83
DS2
DS3
R4
R73
R75
R1
RC19
C86
RC15 GND
SPD LNK ACT
RCM3000 RABBITCORE
UX11 RC24
GND
GND
JP1
GND
+3.3V
PD7
PD6
GND
R20
U4
DS3
GND
NC
PD1
PD0
RN5
C17
2.5 MM JACK
D2 GND +DC
C12 U5
+5V
J9
POWER
CURRENT MEASUREMENT OPTION
MOTOR/ENCODER
J6
RN3
RN1
+3.3V POWER
GND
GND
+3.3V
+DC
+5V
J11
R29 R37 R39 R40
RP1
C2
R10
R8
R12
R6 R11 R9
R13
2.4 Other Hardware
2.4.1 Clock Doubler The RCM3200 takes advantage of the Rabbit 3000 microprocessor's internal clock doubler. A built-in clock doubler allows half-frequency crystals to be used to reduce radiated emissions. The 44.2 MHz frequency specified for the RCM3200 is generated using a 22.12 MHz resonator. The clock doubler may be disabled if 44.2 MHz clock speeds are not required. Disabling the Rabbit 3000 microprocessor's internal clock doubler will reduce power consumption and further reduce radiated emissions. The clock doubler is disabled with a simple change to the BIOS as described below. 1. Open the BIOS source code file, RABBITBIOS.C in the BIOS directory. 2. Change the line
#define CLOCK_DOUBLED 1 // // // // set to 1 to double clock if Rabbit 2000: crystal <= 12.9024 MHz, Rabbit 3000: crystal <= 26.7264 MHz, or to 0 to always disable clock doubler
to read as follows.
#define CLOCK_DOUBLED 0
3. Save the change using File > Save. 2.4.2 Spectrum Spreader The Rabbit 3000 features a spectrum spreader, which helps to mitigate EMI problems. By default, the spectrum spreader is on automatically, but it may also be turned off or set to a stronger setting. The means for doing so is through a simple change to the following BIOS line in a way that is similar to the clock doubler described above.
#define ENABLE_SPREADER 1 // Set to 0 to disable spectrum spreader.
#define SPREADER_SETTING 0 // 0 = normal spreading, 1 = strong spreading
NOTE: Refer to the Rabbit 3000 Microprocessor User's Manual for more information on the spectrum-spreading setting and the maximum clock speed.
User's Manual
15
2.5 Memory
2.5.1 SRAM The RCM3200 has 512K of program execution SRAM installed at U8 and packaged in a 32-pin TSOP or sTSOP case. The data SRAM installed at U6 is 256K. 2.5.2 Flash EPROM The RCM3200 is also designed to accept 256K to 512K of flash EPROM packaged in a 32-pin TSOP or sTSOP case. The flash EPROM installed at U7 is 512K
NOTE: Z-World recommends that any customer applications should not be constrained by the sector size of the flash EPROM since it may be necessary to change the sector size in the future.
Writing to arbitrary flash memory addresses at run time is also discouraged. Instead, define a "user block" area to store persistent data. The functions writeUserBlock and readUserBlock are provided for this. A Flash Memory Bank Select jumper configuration option based on 0 surface-mounted resistors exists at header JP4 on the RCM3200 RabbitCore modules. This option, used in conjunction with some configuration macros, allows Dynamic C to compile two different co-resident programs for the upper and lower halves of the 512K flash in such a way that both programs start at logical address 0000. This is useful for applications that require a resident download manager and a separate downloaded program. See Technical Note TN218, Implementing a Serial Download Manager for a 256K Flash, for details. 2.5.3 Dynamic C BIOS Source Files The Dynamic C BIOS source files handle different standard RAM and flash EPROM sizes automatically.
16
RabbitCore RCM3200
3. SOFTWARE REFERENCE
Dynamic C is an integrated development system for writing embedded software. It runs on an IBM-compatible PC and is designed for use with Z-World controllers and other controllers based on the Rabbit microprocessor. Chapter 3 provides the libraries, function calls, and sample programs related to the RCM3200. 3.1 More About Dynamic C
Dynamic C has been in use worldwide since 1989. It is specially designed for programming embedded systems, and features quick compile and interactive debugging in the real environment. A complete reference guide to Dynamic C is contained in the Dynamic C User's Manual. You have a choice of doing your software development in the flash memory or in the data SRAM included on the RCM3200. The advantage of working in RAM is to save wear on the flash memory, which is limited to about 100,000 write cycles. The disadvantage is that the code and data might not both fit in RAM.
NOTE: An application can be developed in the data SRAM, but should be run from the program execution SRAM after the programming cable is disconnected. To run the application in the fast program execution SRAM, select Code and BIOS in Flash, Run in RAM from the Dynamic C Options > Compiler menu. NOTE: Do not depend on the flash memory sector size or type. Due to the volatility of the flash memory market, the RCM3200 and Dynamic C were designed to accommodate flash devices with various sector sizes.
The disadvantage of using flash memory for debug is that interrupts must be disabled for approximately 5 ms whenever a break point is set in the program. This can crash fast interrupt routines that are running while you stop at a break point or single-step the program. The flash memory and SRAM options are selected with the Options > Compiler menu. Dynamic C provides a number of debugging features. You can single-step your program, either in C, statement by statement, or in assembly language, instruction by instruction. You can set break points, where the program will stop, on any statement. You can evaluate watch expressions. A watch expression is any C expression that can be evaluated in the context of the program. If the program is at a break point, a watch expression can view any expression using local or global variables. If a periodic call to runwatch() is included in your program, you will be able to evaluate watch expressions by hitting without stopping the program.
User's Manual 17
3.2 Dynamic C Functions
The functions described in this section are for use with the Prototyping Board features. The source code is in the RCM32xx.LIB library in the Dynamic C SAMPLES\RCM3200 folder if you need to modify it for your own board design. Other generic functions applicable to all devices based on Rabbit microprocessors are described in the Dynamic C Function Reference Manual. 3.2.1 Board Initialization
void brdInit (void);
Call this function at the beginning of your program. This function initializes Parallel Ports A through G for use with the RCM3200 Prototyping Board. Summary of Initialization 1. I/O port pins are configured for Prototyping Board operation. 2. Unused configurable I/O are set as high outputs. 3. Only one RabbitCore module is plugged in, and is in the MASTER position on the Prototyping Board. 3. The LCD/keypad module is disabled. 4. RS-485 is not enabled. 5. RS-232 is not enabled. 6. The IrDA transceiver is disabled. 7. LEDs are off.
RETURN VALUE
None.
18
RabbitCore RCM3200
3.2.2 Digital I/O The RCM3200 was designed to interface with other systems, and so there are no drivers written specifically for the I/O. The general Dynamic C read and write functions allow you to customize the parallel I/O to meet your specific needs. For example, use
WrPortI(PEDDR, &PEDDRShadow, 0x00);
to set all the Port E bits as inputs, or use
WrPortI(PEDDR, &PEDDRShadow, 0xFF);
to set all the Port E bits as outputs. When using the auxiliary I/O bus on the Rabbit 3000 chip, add the line
#define PORTA_AUX_IO // required to enable auxiliary I/O bus
to the beginning of any programs using the auxiliary I/O bus. The sample programs in the Dynamic C SAMPLES/RCM3200 directory provide further examples. 3.2.3 Serial Communication Drivers Library files included with Dynamic C provide a full range of serial communications support. The RS232.LIB library provides a set of circular-buffer-based serial functions. The PACKET.LIB library provides packet-based serial functions where packets can be delimited by the 9th bit, by transmission gaps, or with user-defined special characters. Both libraries provide blocking functions, which do not return until they are finished transmitting or receiving, and nonblocking functions, which must be called repeatedly until they are finished. For more information, see the Dynamic C Function Reference Manual and Technical Note 213, Rabbit 2000 Serial Port Software. 3.2.4 TCP/IP Drivers The TCP/IP drivers are located in the TCPIP directory. Complete information on these libraries and the TCP/IP functions is provided in the Dynamic C TCP/IP User's Manual.
User's Manual
19
3.3 Sample Programs
Sample programs are provided in the Dynamic C Samples folder. Two subdirectories contain sample programs that illustrate features unique to the RCM3200. * RCM3200--Demonstrates the basic operation and the Ethernet functionality of the RCM3200. * TCPIP--Demonstrates more advanced TCP/IP programming for Z-World's Ethernetenabled Rabbit-based boards. Follow the instructions included with the sample program to connect the RCM3200 and the other hardware identified in the instructions. Before running any Dynamic C applications, you will need to allow the compiler to run the application in the fast program execution SRAM by selecting Code and BIOS in Flash, Run in RAM from the Compiler tab in the Dynamic C Options > Project Options menu. To run a sample program, open it with the File menu (if it is not still open), compile it using the Compile menu (or press F5), and then run it by selecting Run in the Run menu (or press F9). The RCM3200 must be in Program Mode (see Figure 6) and must be connected to a PC using the programming cable. More complete information on Dynamic C is provided in the Dynamic C User's Manual.
20
RabbitCore RCM3200
3.4 Upgrading Dynamic C
Dynamic C patches that focus on bug fixes are available from time to time. Check the Web sites * www.zworld.com/support/ or * www.rabbitsemiconductor.com/support/ for the latest patches, workarounds, and bug fixes. 3.4.1 Add-On Modules Dynamic C installations are designed for use with the board they are included with, and are included at no charge as part of our low-cost kits. Z-World offers add-on Dynamic C modules for purchase, including the popular C/OS-II real-time operating system, as well as PPP, Advanced Encryption Standard (AES), and other select libraries. In addition to the Web-based technical support included at no extra charge, a one-year telephone-based technical support module is also available for purchase.
User's Manual
21
22
RabbitCore RCM3200
APPENDIX A. RCM3200 SPECIFICATIONS
Appendix A provides the specifications for the RCM3200, and describes the conformal coating.
User's Manual
23
A.1 Electrical and Mechanical Characteristics
Figure A-1 shows the mechanical dimensions for the RCM3200.
1.850
(47.0)
1.375
(34.9)
R1 R7 R9
R8 R10 R14 C1 U1 C5 R17 R18 R19 C16 C15
C3 C4 C9 C8 C12 C18 C17
J3
R20 C24
0.100 dia
(2.5)
C39
R22
R23
RP1
U4 C29 C28 C27 C31 D1
R25 U5 R27 R31
Please refer to the RCM3200 footprint diagram later in this appendix for precise header locations.
2.725 0.625
(15.7)
SPD LNK ACT
C19
C20
C23
Y3 Q1 C48
R40 R42
C47 C53
R41
C59
C57 L1
U8
C62 L2 C64 C67
R58 C74 R72 R73
C68 C71
R63 R64
R69
R71 R75 C86
DS2 DS3
GND
(30.0)
1.18
(17.0)
0.67
0.15
(3.8)
(12.7)
0.50
C79 Y4
J4
C83
DS1
1.320
(33.5)
(69.2)
0.55
(14)
2.725
(69.2)
0.55
(14)
0.08
1.850
(47.0)
Figure A-1. RCM3200 Dimensions
24
0.256
(6.5)
J2
J1
(2)
0.86
(22)
0.256
0.10
(2.5)
(6.5)
0.86
(22)
R24 C32 C45 C44 C43 R38 C75 R44
C30 C33
JP4
JP3
R28 C49 R47
C35
C37 C36
JP5
U6 C61 R51 R49 R48
R29 R37 R39
R35
C42
C72 R67 R70 R74
RabbitCore RCM3200
It is recommended that you allow for an "exclusion zone" of 0.04" (1 mm) around the RCM3200 in all directions (except above the RJ-45 plug) when the RCM3200 is incorporated into an assembly that includes other printed circuit boards. This "exclusion zone" that you keep free of other components and boards will allow for sufficient air flow, and will help to minimize any electrical or electromagnetic interference between adjacent boards. An "exclusion zone" of 0.08" (2 mm) is recommended below the RCM3200 when the RCM3200 is plugged into another assembly using the shortest connectors for headers J1 and J2. Figure A-2 shows this "exclusion zone."
(71.2)
2.81
(16)
0.6
2.725
(69.2)
(49.0)
1.93
0.08
(16)
(2)
Exclusion Zone
0.6 0.08
(2)
J2
1.850
(47.0)
J1
Figure A-2. RCM3200 "Exclusion Zone"
User's Manual
25
Table A-1 lists the electrical, mechanical, and environmental specifications for the RCM3200.
Table A-1. RabbitCore RCM3200 Specifications
Feature Microprocessor EMI Reduction Ethernet Port Flash Memory Data SRAM Program Execution SRAM Backup Battery RCM3200 Rabbit 3000(R) at 44.2 MHz RCM3210 Rabbit 3000(R) at 29.5 MHz RCM3220 Rabbit 3000(R) at 44.2 MHz
Spectrum spreader for reduced EMI (radiated emissions) 10/100Base-T, RJ-45, 3 LEDs 512K 256K 512K 256K 128K -- Connection for user-supplied backup battery (to support RTC and data SRAM) 52 parallel digital I/0 lines: * 44 configurable I/O * 4 fixed inputs * 4 fixed outputs Startup mode (2), reset in Status, reset out Can be configured for 8 data lines and 6 address lines (shared with parallel I/O lines), plus I/O read/write 6 shared high-speed, CMOS-compatible ports: -- 512K 256K 512K
General-Purpose I/O
Additional Inputs Additional Outputs Auxiliary I/O Bus
* all 6 configurable as asynchronous (with IrDA), 4 as clocked serial (SPI),
Serial Ports and 2 as SDLC/HDLC (with IrDA)
* 1 asynchronous serial port dedicated for programming * support for MIR/SIR IrDA transceiver
Serial Rate Slave Interface Real-Time Clock Timers Watchdog/Supervisor Pulse-Width Modulators Input Capture Quadrature Decoder Power Maximum asynchronous baud rate = CLK/8 A slave port allows the RCM3200 to be used as an intelligent peripheral device slaved to a master processor, which may either be another Rabbit 3000 or any other type of processor Yes Ten 8-bit timers (6 cascadable), one 10-bit timer with 2 match registers Yes 10-bit free-running counter and four pulse-width registers 2- channel input capture can be used to time input signals from various port pins 2-channel quadrature decoder accepts inputs from external incremental encoder modules 3.15 V to 3.45 V DC 255 mA @ 3.3 V
RabbitCore RCM3200
26
Table A-1. RabbitCore RCM3200 Specifications (continued)
Feature Operating Temperature Humidity Connectors Board Size RCM3200 RCM3210 -40C to +70C 5% to 95%, noncondensing Two 2 x 17, 2 mm pitch 1.850" x 2.725" x 0.86" (47 mm x 69 mm x 22 mm) RCM3220
A.1.1 Headers The RCM3200 uses headers at J1 and J2 for physical connection to other boards. J1 and J2 are 2 x 17 SMT headers with a 2 mm pin spacing. J3, the programming port, is a 2 x 5 header with a 1.27 mm pin spacing. Figure A-3 shows the layout of another board for the RCM3200 to be plugged into. These values are relative to the mounting hole. A.1.2 Physical Mounting A 9/32" (7 mm) standoff with a 2-56 screw is recommended to attach the RCM3200 to a user board at the hole position shown in Figure A-3. Either use plastic hardware, or use insulating washers to keep any metal hardware from shorting out signals on the RCM3200.
J3
RCM3000 Footprint
1.124
(28.5)
J2
1.198
(30.4)
1.341 1.136
(28.9) (34.1)
0.100 dia
(2.5)
0.332
(8.4)
0.079 0.314
(8.0) (2.0)
0.020 sq typ
(0.5)
0.079
(2.0)
J1
0.953 1.043 1.131
(28.7) (26.5) (24.2)
Figure A-3. User Board Footprint for RCM3200
User's Manual
27
A.2 Bus Loading
You must pay careful attention to bus loading when designing an interface to the RCM3200. This section provides bus loading information for external devices. Table A-2 lists the capacitance for the various RCM3200 I/O ports.
Table A-2. Capacitance of Rabbit 3000 I/O Ports
I/O Ports Parallel Ports A to G Input Capacitance (pF) 12 Output Capacitance (pF) 14
Table A-3 lists the external capacitive bus loading for the various RCM3200 output ports. Be sure to add the loads for the devices you are using in your custom system and verify that they do not exceed the values in Table A-3.
Table A-3. External Capacitive Bus Loading -40C to +70C
Output Port All I/O lines with clock doubler enabled All I/O lines with clock doubler disabled Clock Speed (MHz) 29.4 14.7456 Maximum External Capacitive Loading (pF) 30-70 100
28
RabbitCore RCM3200
Figure A-4 shows a typical timing diagram for the Rabbit 3000 microprocessor external memory read and write cycles.
External I/O Read (no extra wait states)
T1 Tw T2
CLK A[15:0]
Tadr valid
/CSx /IOCSx /IORD /BUFEN D[7:0]
TCSx
TCSx
TIOCSx
TIOCSx
TIORD
TIORD
TBUFEN
TBUFEN Tsetup valid Thold
External I/O Write (no extra wait states)
T1 Tw T2
CLK A[15:0]
Tadr valid
/CSx /IOCSx /IOWR /BUFEN D[7:0]
TCSx
TCSx
TIOCSx
TIOCSx
TIOWR
TIOWR
TBUFEN valid TDHZV
TBUFEN
TDVHZ
Figure A-4. I/O Read and Write Cycles--No Extra Wait States
NOTE: /IOCSx can be programmed to be active low (default) or active high.
User's Manual
29
Table A-4 lists the delays in gross memory access time for several values of VDD.
Table A-4. Data and Clock Delays VDD 10%, Temp, -40C-+85C (maximum)
Clock to Address Output Delay (ns) VDD 30 pF 3.3 2.7 2.5 1.8 6 7 8 18 60 pF 8 10 11 24 90 pF 11 13 15 33 Data Setup Time Delay (ns) 1 1.5 1.5 3 Spectrum Spreader Delay (ns) Normal dbl/no dbl 3/4.5 3.5/5.5 4/6 8/12 Strong dbl/no dbl 4.5/9 5.5/11 6/12 11/22
The measurements are taken at the 50% points under the following conditions. * T = -40C to 85C, V = VDD 10% * Internal clock to nonloaded CLK pin delay # 1 ns @ 85V/4.5 V The clock to address output delays are similar, and apply to the following delays. * Tadr, the clock to address delay * TCSx, the clock to memory chip select delay * TIOCSx, the clock to I/O chip select delay * TIORD, the clock to I/O read strobe delay * TIOWR, the clock to I/O write strobe delay * TBUFEN, the clock to I/O buffer enable delay The data setup time delays are similar for both Tsetup and Thold. When the spectrum spreader is enabled with the clock doubler, every other clock cycle is shortened (sometimes lengthened) by a maximum amount given in the table above. The shortening takes place by shortening the high part of the clock. If the doubler is not enabled, then every clock is shortened during the low part of the clock period. The maximum shortening for a pair of clocks combined is shown in the table. Technical Note TN227, Interfacing External I/O with Rabbit 2000/3000 Designs, contains suggestions for interfacing I/O devices to the Rabbit 3000 microprocessors.
30
RabbitCore RCM3200
A.3 Rabbit 3000 DC Characteristics
Table A-5 outlines the DC characteristics for the Rabbit at 3.3 V over the recommended operating temperature range from Ta = -55C to +125C, VDD = 3.0 V to 3.6 V.
Table A-5. 3.3 Volt DC Characteristics
Symbol IIH IIL IOZ VIL VIH VT VOL Parameter Input Leakage High Input Leakage Low (no pull-up) Output Leakage (no pull-up) CMOS Input Low Voltage CMOS Input High Voltage CMOS Switching Threshold VDD = 3.3 V, 25C Low-Level Output Voltage IOL = See (sinking) VDD = 3.0 V IOH = See (sourcing) VDD = 3.0 V 0.7 x VDD 0.7 x VDD 1.65 0.4 Test Conditions VIN = VDD, VDD = 3.3 V VIN = VSS, VDD = 3.3 V -1 VIN = VDD or VSS, VDD = 3.3 V -1 1 Min Typ 1 Max Units A A A
0.3 x VDD V V V V
VOH
High-Level Output Voltage
V
User's Manual
31
A.4 I/O Buffer Sourcing and Sinking Limit
Unless otherwise specified, the Rabbit I/O buffers are capable of sourcing and sinking 6.8 mA of current per pin at full AC switching speed. Full AC switching assumes a 29.4 MHz CPU clock and capacitive loading on address and data lines of less than 70 pF per pin. The absolute maximum operating voltage on all I/O is 5.5 V. Table A-6 shows the AC and DC output drive limits of the parallel I/O buffers when the Rabbit 3000 is used in the RCM3200.
Table A-6. I/O Buffer Sourcing and Sinking Capability
Output Drive (Full AC Switching) Pin Name Sourcing/Sinking Limits (mA) Sourcing All data, address, and I/O lines with clock doubler enabled 6.8 Sinking 6.8
Under certain conditions, the maximum instantaneous AC/DC sourcing or sinking current may be greater than the limits outlined in Table A-6. The maximum AC/DC sourcing current can be as high as 12.5 mA per buffer as long as the number of sourcing buffers does not exceed three per VDD or VSS pad, or up to six outputs between pads. Similarly, the maximum AC/DC sinking current can be as high as 8.5 mA per buffer as long as the number of sinking buffers does not exceed three per VDD or VSS pad, or up to six outputs between pads. The VDD bus can handle up to 35 mA, and the VSS bus can handle up to 28 mA. All these analyses were measured at 100C.
32
RabbitCore RCM3200
A.5 Conformal Coating
The areas around the 32 kHz real-time clock crystal oscillator has had the Dow Corning silicone-based 1-2620 conformal coating applied. The conformally coated area is shown in Figure A-5. The conformal coating protects these high-impedance circuits from the effects of moisture and contaminants over time.
R1 R7 R9
R8 R10 R14 C1 U1 C5 R17 R18 R19 C16 C15
C3 C4 C9 C8 C12 C18 C17
J3
R24 C47 C32 C39 R58 C74 R72
R20 C24
R22
R23
RP1
Conformally coated area
D1
R41
C19
C20 C29 C28 C27
C23
U4 C31
C30 C33
JP4
JP3
R28 Q1 C49 R44 R47 U8
C35
R25 U5 R27 R31
C37 C36
JP5
U6
R35
C42 Y3
R29 R37 R39 R40 R42
R69
R71 R75 C86
DS2 DS3
R73
GND
Figure A-5. RCM3200 Areas Receiving Conformal Coating
Any components in the conformally coated area may be replaced using standard soldering procedures for surface-mounted components. A new conformal coating should then be applied to offer continuing protection against the effects of moisture and contaminants.
NOTE: For more information on conformal coatings, refer to Technical Note 303, Conformal Coatings.
User's Manual
SPD LNK ACT
C45 C44 C43 R38 C53 C75
C48 C61 C59 C57 L1 R51 R49 R48 C62 L2 C68 C71 C64 C67 R63 R64 C72 C79 Y4
J4
C83
DS1
R67 R70 R74
33
A.6 Jumper Configurations
Figure A-6 shows the header locations used to configure the various RCM3200 options via jumpers.
Top Side
Bottom Side
JP1
JP3
JP4 JP5
JP2
Figure A-6. Location of RCM3200 Configurable Positions
Table A-7 lists the configuration options.
Table A-7. RCM3200 Jumper Configurations
Header Description 1-2 JP1 Auxiliary I/O data bus 2-3 1-2 JP2 Program Execution SRAM Size 2-3 1-2 JP3 Flash Memory Size 2-3 1-2 JP4 Flash Memory Bank Select 2-3 1-2 JP5 Data SRAM Size 2-3 512K Bank Mode 256K 512K Normal Mode 512K 128K/256K Buffer enabled 128K/256K Pins Connected Buffer disabled Factory Default
x x x x x
NOTE: The jumper connections are made using 0 surface-mounted resistors.
34
RabbitCore RCM3200
APPENDIX B. PROTOTYPING BOARD
Appendix B describes the features and accessories of the Prototyping Board, and explains the use of the Prototyping Board to demonstrate the RCM3200 and to build prototypes of your own circuits.
User's Manual
35
B.1 Mechanical Dimensions and Layout
Figure B-1 shows the mechanical dimensions and layout for the RCM3200 Prototyping Board.
C15 L1 C13 D1 C11 C10 C12 U5 GND BD0 BD2 BD4 BD6 BA3 BA1 BA2 BA0 BD1 BD3 BD5 BD7 GND
VBAT EXT /RES IN SM0 /IOWR PG5 PG7 PE1 PE4 PE6 PF7 PF5 PB7 PB5 PB3 PB0 J1
VRAM SM1 /IORD PG4 PG6 PE0 PE3 PE5 PE7 PF6 PF4 PB6 PB4 PB2 /RES RN2
PD3 PD5 PG3 PG1 PD4 PC5 PC3 PC1 PF0 PF2 PA0 PA2 PA4 PA6 PE4 J3 C1
PD2 PD4 PG2 PG0 PD5 PC4 PC2 PC0 PF1 PF3 PA1 PA3 PA5 PA7 GND RCM1 BT1 RN4 U4 R17 R20
RCM30/31/32XX CORE MODULE +5V
Battery
+3.3V
+3.3V
J14
UX10
RC15 RC19 RC20 UX9
RCM2 RC24 RC23
UX11
R1
R4
RC14 RC17 RC13 RC12 RC10 RC11 RC16
RC22
UX3
RC21 R13 R11 RC2 UX2
GND GND
PD0 PD6 PD2 PD4 PG2 PG0 PD5 PC4 PC2 PC0 PF1 PF3 PA1 PA3 C4 PA5 PA7 GND U1 UX7 R14 UX5 RC9 U3
GND +5V J8
GND +5V
GND GND VBAT EXT /RES IN SM0 /IOWR PG5 PG7 PE1 PE4 PE6 PF7 PF5 PB7 PB5 PB3 PB0
NC +3.3V VRAM SM1 /IORD PG4 PG6 PE0 PE3 PE5 PE7 PF6 PF4 PB6 PB4 PB2 /RES
PD1 PD7 PD3 PD5 PG3 PG1 PD4 PC5 PC3 PC1 PF0 PF2 PA0 PA2 PA4 PA6 PE4
+3.3V RCM30/31/32XX CORE MODULE
TP1 R16
+3.3V
RC6 RC7
+5V
+5V
BPE3 +5V GND RC4 C14 U3 RC25 RC5 RC27 RC28 RC29 RC26
R15
+5V
/RES LCD
+3.3V
+3.3V
UX4
C9
U6
C16
DISPLAY BOARD
C5 C8
J12
RESET
C6 RxC TxC
J13
S2 S3
RCM30/31/32XX SERIES P R O TO T Y P I N G B O A R D
PG6 PG7 J10
DS1 DS2
UX13
J4
TxB RxB GND
J5
C7
J7 DISPLAY BOARD
RS-232
DISPLAY BOARD
(171)
6.75
Figure B-1. Prototyping Board Dimensions
36
RabbitCore RCM3200
GND
R21
RC1
R2
+5V
(133)
5.25
C3 R5
+5V
R3
GND
MASTER
RC18
SLAVE
J15
GND
JP1
GND
+3.3V
PD7
PD6
GND
DS3
GND
NC
PD1
PD0
RN5
C17
2.5 MM JACK
D2 GND +DC
+5V
J9
POWER
CURRENT MEASUREMENT OPTION
MOTOR/ENCODER
J6 RN3 C2 R10 R8 R12 R6 R7 R9
RN1
+3.3V POWER
GND
GND
+3.3V
+DC
+5V
J11
Table B-1 lists the electrical, mechanical, and environmental specifications for the Prototyping Board.
Table B-1. Prototyping Board Specifications
Parameter Board Size Operating Temperature Humidity Input Voltage Specification 5.25" x 6.75" x 1.00" (133 mm x 171 mm x 25 mm) -20C to +60C 5% to 95%, noncondensing 8 V to 24 V DC
Maximum Current Draw 800 mA max. for +3.3 V supply, (including user-added circuits) 1 A total +3.3 V and +5 V combined Prototyping Area Standoffs/Spacers 2.0" x 3.5" (50 mm x 90 mm) throughhole, 0.1" spacing, additional space for SMT components 5, accept 4-40 x 3/8 screws
B.2 Power Supply
The RCM3200 requires a regulated 3.3 V 0.15 V DC power source to operate. Depending on the amount of current required by the application, different regulators can be used to supply this voltage. The Prototyping Board has an onboard +5 V switching power regulator from which a +3.3 V linear regulator draws its supply. Thus both +5 V and +3.3 V are available on the Prototyping Board. The Prototyping Board itself is protected against reverse polarity by a Shottky diode at D2 as shown in Figure B-2.
LINEAR POWER REGULATOR +3.3 V
3
J9/J11
SWITCHING POWER REGULATOR
1
+5 V
POWER IN
2 3
+RAW
D2
DCIN C17 47 F
DL4003
U5
330 H
LM1117 U1
1
2
340 F
10 F
LM2575
D1 1N5819
L1
Figure B-2. Prototyping Board Power Supply
User's Manual
37
B.3 Using the Prototyping Board
The Prototyping Board is actually both a demonstration board and a prototyping board. As a demonstration board, it can be used to demonstrate the functionality of the RCM3200 right out of the box without any modifications to either board. There are no jumpers or dip switches to configure or misconfigure on the Prototyping Board so that the initial setup is very straightforward. The Prototyping Board comes with the basic components necessary to demonstrate the operation of the RCM3200. Two LEDs (DS1 and DS2) are connected to PG6 and PG7, and two switches (S2 and S3) are connected to PG1 and PG0 to demonstrate the interface to the Rabbit 3000 microprocessor. Reset switch S1 is the hardware reset for the RCM3200. The Prototyping Board provides the user with RCM3200 connection points brought out conveniently to labeled points at headers J2 and J4 on the Prototyping Board. Small to medium circuits can be prototyped using point-to-point wiring with 20 to 30 AWG wire between the prototyping area and the holes at locations J2 and J4. The holes are spaced at 0.1" (2.5 mm), and 40-pin headers or sockets may be installed at J2 and J4. The pinouts for locations J2 and J4, which correspond to headers J1 and J2, are shown in Figure B-3.
J2
GND GND VBAT_EXT /RESET_IN SMODE0 /IOWR PG5 PG7 PE1 PE4 PE6 PF7 PF5 PB7 PB5 PB3 PB0 NC +3.3V VRAM SMODE1 /IORD PG4 PG6 PE0 PE3 PE5 PE7 PF6 PF4 PB6 PB4 PB2 /RES PD1 PD7 PD3 PD5 PG3 PG1 PC7 PC5 PC3 PC1 PF0 PF2 PA0 PA2 PA4 PA6 STATUS
J4
PD0 PD6 PD2 PD4 PG2 PG0 PC6 PC4 PC2 PC0 PF1 PF3 PA1 PA3 PA5 PA7 GND
n.c. = not connected
Figure B-3. Prototyping Board Pinout (Top View)
The small holes are also provided for surface-mounted components that may be installed around the prototyping area. There is a 2.0" x 3.5" through-hole prototyping space available on the Prototyping Board. +3.3 V, +5 V, and GND traces run along the edge of the Prototyping Board for easy access.
38 RabbitCore RCM3200
B.3.1 Adding Other Components There are pads that can be used for surface-mount prototyping involving SOIC devices. There is provision for seven 16-pin devices (six on one side, one on the other side). There are 10 sets of pads that can be used for 3- to 6-pin SOT23 packages. There are also pads that can be used for SMT resistors and capacitors in an 0805 SMT package. Each component has every one of its pin pads connected to a hole in which a 30 AWG wire can be soldered (standard wire wrap wire can be soldered in for point-to-point wiring on the Prototyping Board). Because the traces are very thin, carefully determine which set of holes is connected to which surface-mount pad. B.3.2 Measuring Current Draw The Prototyping Board has a current-measurement feature available on header JP1. Normally, a jumper connects pins 1-2 and pins 5-6 on header JP1, which provide jumper connections for the +5 V and the +3.3 V regulated voltages respectively. You may remove a jumper and place an ammeter across the pins instead, as shown in the example in Figure B-4, to measure the current being drawn.
0
A
+3.3V
JP1 CURRENT MEASUREMENT OPTION
Figure B-4. Prototyping Board Current-Measurement Option
B.3.3 Other Prototyping Board Modules and Options An optional LCD/keypad module is available that can be mounted on the Prototyping Board. Refer to Appendix C, "LCD/Keypad Module," for complete information. A motor control option is available for development by the customer. Refer to Appendix F, "Motor Control Option," for complete information on using the Rabbit 3000's Parallel Port F in conjunction with this application.
+5V
User's Manual
39
40
RabbitCore RCM3200
APPENDIX C. LCD/KEYPAD MODULE
An optional LCD/keypad is available for the Prototyping Board. Appendix C describes the LCD/keypad and provides the software APIs to make full use of the LCD/keypad. C.1 Specifications
Two optional LCD/keypad modules--with or without a panel-mounted bezel--are available for use with the Prototyping Board. They are shown in Figure C-1.
LCD/Keypad Modules
Figure C-1. LCD/Keypad Modules Models
Contact your Z-World or Rabbit Semiconductor sales representative or your authorized Z-World/Rabbit Semiconductor distributor for further assistance in purchasing an LCD/keypad module. Mounting hardware and a 60 cm (24") extension cable are also available for the LCD/keypad module through your Z-World/Rabbit Semiconductor sales representative or authorized distributor.
User's Manual 41
Table C-1 lists the electrical, mechanical, and environmental specifications for the LCD/keypad module.
Table C-1. LCD/Keypad Specifications
Parameter Board Size Temperature Humidity Power Consumption Connections LCD Panel Size Keypad LEDs Specification 2.60" x 3.00" x 0.75" (66 mm x 76 mm x 19 mm) Operating Range: 0C to +50C Storage Range: -40C to +85C 5% to 95%, noncondensing 1.5 W maximum* Connects to high-rise header sockets on the Prototyping Board 122 x 32 graphic display 7-key keypad Seven user-programmable LEDs
* The backlight adds approximately 650 mW to the power consumption.
42
RabbitCore RCM3200
C.2 Contrast Adjustments for All Boards
Depending on when you acquired your LCD/keypad module, you will be able to set the contrast on the LCD display by adjusting the potentiometer at R2 or by setting the voltage for 5 V by not using the jumper across any pins on header J5 as shown in Figure C-2. Only one of these two options is available on a given LCD/keypad module.
LCD/Keypad Module Jumper Configurations
Header Description Pins Connected Factory Default
2.8 V J5 3.3 V 5V
12 34 n.c.
x
Contrast Adjustment
C2
R1
C3
C5
R2
D2 C1 C6 C7 R4 R5
D1
JP1 U2
R3
U1
C4 C10
U3 LCD1
C9
CR1 C12 R7 R6
C11 U4
C13
J5
3 4 1 2
Q1 J5 R25 J1
R26 R11 R13 R14 R10 R20 Q3 R19 R9 R12
R15 R18
J5
R17
3 4 1 2
R22
Q4
R21
Q6
Q7 U6
Q2 U5
Q5
OTHER LP3500
3.3 V 2.8 V n.c. = 5 V KP1
Q8 J2
U7 C14 C16 R24 C15
C17
RN1
DISPLAY BOARD
J4
Figure C-2. LCD/Keypad Module Voltage Settings
NOTE: Older LCD/keypad modules that do not have a header at J5 or a contrast adjustment potentiometer at R2 are limited to operate only at 5 V, and will work with the Prototyping Board. The older LCD/keypad modules are no longer being sold.
User's Manual
Part No. 101-0541
R8
R23
R16
43
C.3 Keypad Labeling
The keypad may be labeled according to your needs. A template is provided in Figure C-3 to allow you to design your own keypad label insert.
1.10
(28)
2.35
(60)
Figure C-3. Keypad Template
To replace the keypad legend, remove the old legend and insert your new legend prepared according to the template in Figure C-3. The keypad legend is located under the blue keypad matte, and is accessible from the left only as shown in Figure C-4.
Keypad label is located under the blue keypad matte.
Figure C-4. Removing and Inserting Keypad Label
44
RabbitCore RCM3200
C.4 Header Pinouts
Figure C-5 shows the pinouts for the LCD/keypad module.
J1
DB7B DB5B DB3B DB1B A0B A2B GND GND LED6 LED4 LED2 /CS +5BKLT GND DB6B DB4B DB2B DB0B A1B A3B
J3
GND DB7B DB5B DB3B DB1B A0B A2B
J2
GND GND LED6 LED4 LED2 PE7 +5BKLT
Figure C-5. LCD/Keypad Module Pinouts
C.4.1 I/O Address Assignments The LCD and keypad on the LCD/keypad module are addressed by the /CS strobe as explained in Table C-2.
Table C-2. LCD/Keypad Module Address Assignment
Address 0xC000 0xCxx0-0xCxx7 0xCxx8 0xCxx9 0xCxxA 0xCxxB (bits 0-6) 0xCxxB (bit 7) 0xCxxC-ExxF Function Device select base address (/CS) LCD control LED enable Not used 7-key keypad 7-LED driver LCD backlight on/off Not used
User's Manual
GND LED7 LED5 LED3 LED1 /RES VCC
DB6B DB4B DB2B DB0B A1B A3B GND LED7 LED5 LED3 LED1 /RES VCC
45
C.5 Mounting LCD/Keypad Module on the Prototyping Board
Install the LCD/keypad module on header sockets J7, J8, and J10 of the Prototyping Board as shown in Figure C-6. Be careful to align the pins over the headers, and do not bend them as you press down to mate the LCD/keypad module with the Prototyping Board.
C15 L1 C13 D1 C11 C10 C12 U5 GND BD0 BD2 BD4 BD6 BA3 BA1 BA2 BA0 BD1 BD3 BD5 BD7 GND
VBAT EXT /RES IN SM0 /IOWR PG5 PG7 PE1 PE4 PE6 PF7 PF5 PB7 PB5 PB3 PB0 J1
VRAM SM1 /IORD PG4 PG6 PE0 PE3 PE5 PE7 PF6 PF4 PB6 PB4 PB2 /RES RN2
PD3 PD5 PG3 PG1 PD4 PC5 PC3 PC1 PF0 PF2 PA0 PA2 PA4 PA6 PE4 J3
PD2 PD4 PG2 PG0 PD5 PC4 PC2 PC0 PF1 PF3 PA1 PA3 PA5 PA7 GND C1 C2 SPD LNK ACT RCM1 RN4 U4 R17 R20
+5V
Battery
BT1
+3.3V
+3.3V
RCM3000 RABBITCORE J15
RC18
J14
UX10
SLAVE MASTER
R74 C86 RCM2
R67 R70
RC17 RC13 RC12 RC10 RC11 R42 RC16 R7 UX3
RC22
R51 R49 R48
C61
R44
RC2 C49
UX2 C53
GND GND +3.3V +3.3V
RC6 RC7
GND +5V J8
GND +5V
C48
C39
C37 C36
BPE3
+5V
C35
GND
JP4
C33
R15
SM0 /IOWR PG5 PG7 PE1 PE4 PE6 PF7 PF5 PB7 PB5 PB3 PB0
/IORD PG4 PG6 PE0 PE3 PE5 PE7 PF6 PF4 PB6 PB4 PB2
PG3 PG1 PD4 PC5 PC3 PC1 PF0 PF2 PA0 PA2 PA4 PA6
PG2 PG0 PD5 RP1 PC4 PC2 PC0 PF1
JP3
C32
C28 C27
C29
C30
R24
C23
C20
C24
C19
C18
C17
C12
C16 C15
C4
C9 C8
PA3 C4 PA5 PA7 GND
C8
J12
RESET
C6 RxC TxC
S2
/RES STATUS
J4
TxB RxB GND
J5
C7
RS-232
Figure C-6. Install LCD/Keypad Module on Prototyping Board
46
R1
C5
R8
PA1
J13
S3
R7 R9
C1
PF3
R10 R14
U1 C5
U1 C3
J3
R22
D1
C31
R23
U4
R20
R19
R17 R18
R25
SM1
PD5
PD4
TP1
U5
VBAT EXT /RES IN
JP5
VRAM
PD3
PD2
R27
R31
R28
R16
U6
R35
C42
PD6
+5V
GND
+3.3V
PD7
/RES LCD
Q1
Y3
R29 R37 R39 R40
GND
NC
PD1
PD0
C45 C44 C43 R38
+3.3V +5V +5V
+3.3V
UX4
J8
U6 C16
DISPLAY BOARD
RC4 C14 U3
RC25 RC5 RC27 RC28 RC29 RC26
C9 U3
R14
UX5 RC9
UX7
RCM3000 PROTOTYPING BOARD
PG6 PG7
UX13
DS1
DS2
DISPLAY BOARD
J10
J10
J7
DISPLAY BOARD
J7
RabbitCore RCM3200
GND
+5V
C47
R41
C59
C57
R21
R47
RC21
R58
U8
C62
L1
L2
C68
C71
RC14
C72
RC1
R2
C74
R63 R64
C64 C67
J4
C3 R5
C75
UX9
+5V
DS1
R3
R69
C79 Y4
DS2
RC20
RC23
R72
R71
R4
C83
DS3
R1
R75
RC19
R73
GND
RC15
RCM3000 RABBITCORE
UX11 RC24
GND
GND
JP1
GND
+3.3V
PD7
PD6
GND
DS3
GND
NC
PD1
PD0
RN5
C17
2.5 MM JACK
D2 GND +DC
+5V
J9
POWER
CURRENT MEASUREMENT OPTION
MOTOR/ENCODER
J6 RN3 R10 R8 R12 R6 R13 R11 R9
RN1
+3.3V POWER
GND
GND
+3.3V
+DC
+5V
J11
C.6 Bezel-Mount Installation
This section describes and illustrates how to bezel-mount the LCD/keypad module. Follow these steps for bezel-mount installation. 1. Cut mounting holes in the mounting panel in accordance with the recommended dimensions in Figure C-7, then use the bezel faceplate to mount the LCD/keypad module onto the panel.
0.125 D, 4x
(3)
CUTOUT
0.230
(5.8)
2.870
(72.9)
3.100
(78.8)
Figure C-7. Recommended Cutout Dimensions
2. Carefully "drop in" the LCD/keypad module with the bezel and gasket attached.
User's Manual
0.130
(3.3)
3.400
(86.4)
47
3. Fasten the unit with the four 4-40 screws and washers included with the LCD/keypad module. If your panel is thick, use a 4-40 screw that is approximately 3/16" (5 mm) longer than the thickness of the panel.
Bezel/Gasket
DISPLAY BOARD C1 U1 C2 Q1 R17 U2 C3 C4 U3
D1
J1
R1
Panel
KP1
R2 R10 Q2 R9 J2
R3 R11 Q3
R4
R5 R12
R6 R13 Q5 Q6
R7 R14
R8 R15 R18 Q8 C5 R16
Q4
Q7
RN1
J3 U4
C6
C7
Figure C-8. LCD/Keypad Module Mounted in Panel (rear view)
Carefully tighten the screws until the gasket is compressed and the plastic bezel faceplate is touching the panel. Do not tighten each screw fully before moving on to the next screw. Apply only one or two turns to each screw in sequence until all are tightened manually as far as they can be so that the gasket is compressed and the plastic bezel faceplate is touching the panel.
48
C8
RabbitCore RCM3200
C.6.1 Connect the LCD/Keypad Module to Your Prototyping Board The LCD/keypad module can be located as far as 2 ft. (60 cm) away from the RCM3000 Series Prototyping Board, and is connected via a ribbon cable as shown in Figure C-9.
VBAT EXT /RES IN SM0 /IOWR PG5 PG7 PE1 PE4 PE6 PF7 PF5 PB7 PB5 PB3 PB0 J1
VRAM SM1 /IORD PG4 PG6 PE0 PE3 PE5 PE7 PF6 PF4 PB6 PB4 PB2 /RES RN2
PD3 PD5 PG3 PG1 PC7 PC5 PC3 PC1 PF0 PF2 PA0 PA2 PA4 PA6 PE4 J3 C1
PD2 PD4 PG2 PG0 PC6 PC4 PC2 PC0 PF1 PF3 PA1 PA3 PA5 PA7 GND RCM1 RN4 U4 R17 R20 C13
C11 C10
+5V
Battery
BT1
+3.3V
+3.3V
RCM3000 RABBITCORE J15
RC18
J14
UX10
SLAVE MASTER
RCM2
C83
RC23 C79 Y4 C75
C72
R44
RC11
RC2
UX2 C53
C49
GND GND
GND +5V J8
GND +5V
R42
C48
C45 C44 C43 R38
GND
/RES LCD
BD0
BD2
BD4
R28
C39
BPE3
BA2
BA0
+5V
BD1
BD3
BD5
BD7
GND
C37 C36
GND
C35
R15
JP3
C33
JP4
Pin 1
C32
C29
C28 C27
C30
C23
C20
C24
PG7 PE1 PE4 PE6 PF7 PF5 PB7 PB5 PB3 PB0
PE0 PE3 PE5 PE7 PF6 PF4 PB6 PB4 PB2
PC5 PC3 PC1 PF0 PF2 PA0 PA2 PA4 PA6
PC4 PC2 PC0 PF1 PF3 C4 PA1 PA3 RP1
R24
PG5
PG6
PD4
C19
C18
C17
C12
C16 C15
U1 C9 C8 U1 C5 C3
C8 C4
PA5 PA7 GND
J12
RESET
C6 RxC TxC
S2
/RES STATUS
J4
TxB RxB GND
J5
C7
RS-232
C1
U1 C2
U2 C3
C4
U3
Q1 R17
D1 J5 R25 R1
J1
R26 R2 R10 R9 R3 R11 R4 R5 R12 R6 R13 R7 R14 R8 R15
Q2
Q3
Q4
Q5
Q6
Q7
Q8
C5 R16
KP1
J2
RN1
J3 U4
C6
Figure C-9. Connecting LCD/Keypad Module to RCM3000 Series Prototyping Board
Note the locations and connections relative to pin 1 on both the RCM3000 Series Prototyping Board and the LCD/keypad module. Z-World offers 2 ft. (60 cm) extension cables. Contact your authorized Z-World distributor or a Z-World sales representative at +1(530)757-3737 for more information.
User's Manual 49
C8
Pin 1
R18
R1
R8
C5
C1
J13
S3
J3
R7 R9
R22
R23
R10 R14
U4
PD5
C31
/IOWR
PG4
PG1
PG0
D1
SM0
/IORD
PG3
PG2
R20
R19
R17 R18
U5
VBAT EXT /RES IN
R27
R31
VRAM SM1
PD3 PD5
JP5
PD2 PD4
TP1
R16
U6
R35
C42
R25
Y3
PD6
+3.3V +5V
RC6 RC7
+3.3V +5V
+5V
GND
+3.3V
PD7
BD6
BA3
BA1
Q1
GND
NC
PD1
PD0
+3.3V
+3.3V
UX4
C9 U3
U6
C16
DISPLAY BOARD
RC4 C14 U3
RC25 RC5 RC27 RC28 RC29 RC26
R14
UX5
RC9
UX7
RCM3000 PROTOTYPING BOARD
PG6 PG7 J10
DS1 DS2
UX13
J7 DISPLAY BOARD
DISPLAY BOARD
DISPLAY BOARD
GND C7
C61
+5V
C47
R41
C59
C57
RC10
R47
L1
R21
RC12
R51 R49 R48
RC21
U8
UX3
C62
L2
RC13
RC16 R7
C64 C67
RC17
RC22
R58
C68
C71
RC14
RC1
C74
R2
R63 R64
J4
DS1
C3 R5
R67 R70
UX9
+5V
R69
R3
R72
R71
DS2
DS3
RC20
R74
R4
R73
R75
R1
RC19
C86
RC15 GND SPD LNK ACT
RCM3000 RABBITCORE
UX11 RC24
GND
J8
GND
JP1
GND
+3.3V
PD7
PD6
GND
DS3
GND
NC
PD1
PD0
RN5
C17
D1
2.5 MM JACK
D2 GND +DC
C12 U5
+5V
J9
POWER
C15 L1
CURRENT MEASUREMENT OPTION
MOTOR/ENCODER
J6 RN3 R29 R37 R39 R40 C2 R10 R8 R12 R6 R13 R11 R9
RN1
+3.3V POWER
GND
GND
+3.3V
+DC
+5V
J11
C.7 LCD/Keypad Module Function APIs
When mounted on the Prototyping Board, the LCD/keypad module uses the auxiliary I/O bus on the Rabbit 3000 chip. Remember to add the line
#define PORTA_AUX_IO
to the beginning of any programs using the auxiliary I/O bus. C.7.1 LEDs When power is applied to the LCD/keypad module for the first time, the red LED (DS1) will come on, indicating that power is being applied to the LCD/keypad module. The red LED is turned off when the brdInit function executes. One function is available to control the LEDs, and can be found in the RCM3200.LIB library in the SAMPLES\RCM3200 directory.
void ledOut(int led, int value);
LED on/off control. This function will only work when the LCD/keypad module is installed on the Prototyping Board.
PARAMETERS
led is the LED to control. 0 = LED DS1 1 = LED DS2 2 = LED DS3 3 = LED DS4 4 = LED DS5 5 = LED DS6 6 = LED DS7 value is the value used to control whether the LED is on or off (0 or 1). 0 = off 1 = on
RETURN VALUE
None.
SEE ALSO brdInit
50
RabbitCore RCM3200
C.7.2 LCD Display The functions used to control the LCD display are contained in the GRAPHIC.LIB library located in the Dynamic C DISPLAYS\GRAPHIC library directory.
void glInit(void);
Initializes the display devices, clears the screen.
RETURN VALUE
None.
SEE ALSO glDispOnOFF, glBacklight, glSetContrast, glPlotDot, glBlock, glPlotDot, glPlotPolygon, glPlotCircle, glHScroll, glVScroll, glXFontInit, glPrintf, glPutChar, glSetBrushType, glBuffLock, glBuffUnlock, glPlotLine
void glBackLight(int onOff);
Sets the intensity of the backlight, if circuitry is installed.
PARAMETER
: onOff reflects the low to high values (typically 0 to 255, depending on the board design) to set the backlight intensity (0 will turn the backlight off completely.)
RETURN VALUE
None.
SEE ALSO glInit, glDispOnoff, glSetContrast
void glDispOnOff(int onOff);
Sets the LCD screen on or off. Data will not be cleared from the screen.
PARAMETER
onOff turns the LCD screen on or off 1--turn the LCD screen on 0--turn the LCD screen off
RETURN VALUE
None.
SEE ALSO glInit, glSetContrast, glBackLight
User's Manual
51
void glSetContrast(unsigned level);
Sets display contrast (the circuitry is not installed on the LCD/keypad module used with the Prototyping Board).
PARAMETER
level reflects low to high values (typically 0 to 255, depending on the board design) to give high to low contrast respectively.
RETURN VALUE
None.
SEE ALSO glInit, glBacklight, glDispOnoff
void glFillScreen(char pattern);
Fills the LCD display screen with a pattern.
PARAMETER
The screen will be set to all black if pattern is 0xFF, all white if pattern is 0x00, and vertical stripes for any other pattern.
RETURN VALUE
None.
SEE ALSO glBlock, glBlankScreen, glPlotPolygon, glPlotCircle
void glBlankScreen(void);
Blanks the LCD display screen (sets LCD display screen to white).
RETURN VALUE
None.
SEE ALSO glFillScreen, glBlock, glPlotPolygon, glPlotCircle
52
RabbitCore RCM3200
void glBlock(int x, int y, int bmWidth, int bmHeight);
Draws a rectangular block in the page buffer and on the LCD if the buffer is unlocked. Any portion of the block that is outside the LCD display area will be clipped.
PARAMETERS
x is the x coordinate of the upper left corner of the block. y is the y coordinate of the left top corner of the block. bmWidth is the width of the block. bmWidth is the height of the block.
RETURN VALUE
None.
SEE ALSO glFillScreen, glBlankScreen, glPlotPolygon, glPlotCircle
void glPlotVPolygon(int n, int *pFirstCoord);
Plots the outline of a polygon in the LCD page buffer, and on the LCD if the buffer is unlocked. Any portion of the polygon that is outside the LCD display area will be clipped. The function will also return, doing nothing, if there are less than 3 vertices.
PARAMETERS
n is the number of vertices. *pFirstCoord is a pointer to array of vertex coordinates: x1,y1, x2,y2, x3,y3,...
RETURN VALUE
None.
SEE ALSO glPlotPolygon, glFillPolygon, glFillVPolygon
User's Manual
53
void glPlotPolygon(int n, int y1, int x2, int y2, ...);
Plots the outline of a polygon in the LCD page buffer and on the LCD if the buffer is unlocked. Any portion of the polygon that is outside the LCD display area will be clipped. The function will also return, doing nothing, if there are less than 3 vertices.
PARAMETERS
n is the number of vertices. y1 is the y coordinate of the first vertex. x1 is the x coordinate of the first vertex. y2 is the y coordinate of the second vertex. x2 is the x coordinate of the second vertex. ... are the coordinates of additional vertices.
RETURN VALUE
None.
SEE ALSO glPlotVPolygon, glFillPolygon, glFillVPolygon
void glFillVPolygon(int n, int *pFirstCoord);
Fills a polygon in the LCD page buffer and on the LCD screen if the buffer is unlocked. Any portion of the polygon that is outside the LCD display area will be clipped. The function will also return, doing nothing, if there are less than 3 vertices.
PARAMETERS
n is the number of vertices. *pFirstCoord is a pointer to array of vertex coordinates: x1,y1, x2,y2, x3,y3,...
RETURN VALUE
None.
SEE ALSO glFillPolygon, glPlotPolygon, glPlotVPolygon
54
RabbitCore RCM3200
void glFillPolygon(int n, int x1, int y1, int x2, int y2, ...);
Fills a polygon in the LCD page buffer and on the LCD if the buffer is unlocked. Any portion of the polygon that is outside the LCD display area will be clipped.
PARAMETERS
n is the number of vertices. x1 is the x coordinate of the first vertex. y1 is the y coordinate of the first vertex. x2 is the x coordinate of the second vertex. y2 is the y coordinate of the second vertex. ... are the coordinates of additional vertices.
RETURN VALUE
None.
SEE ALSO glFillVPolygon, glPlotPolygon, glPlotVPolygon
void glPlotCircle(int xc, int yc, int rad);
Draws a circle in the LCD page buffer and on the LCD if the buffer is unlocked. Any portion of the circle that is outside the LCD display area will be clipped.
PARAMETERS
xc is the x coordinate of the center of the circle. yc is the y coordinate of the center of the circle. rad is the radius of the center of the circle (in pixels).
RETURN VALUE
None.
SEE ALSO glFillCircle, glPlotPolygon, glFillPolygon
void glFillCircle(int xc, int yc, int rad);
Draws a filled circle in the LCD page buffer and on the LCD if the buffer is unlocked. Any portion of the circle that is outside the LCD display area will be clipped.
PARAMETERS
xc is the x coordinate of the center of the circle. yc is the y coordinate of the center of the circle. rad is the radius of the center of the circle (in pixels).
RETURN VALUE
None.
SEE ALSO glPlotCircle, glPlotPolygon, glFillPolygon
User's Manual
55
void glXFontInit(fontInfo *pInfo, char pixWidth, char pixHeight, unsigned startChar, unsigned endChar, unsigned long xmemBuffer);
Initializes the font descriptor structure, where the font is stored in xmem. Each font character's bitmap is column major and byte-aligned.
PARAMETERS
*pInfo is a pointer to the font descriptor to be initialized. pixWidth is the width (in pixels) of each font item. pixHeight is the height (in pixels) of each font item. startChar is the value of the first printable character in the font character set. endChar is the value of the last printable character in the font character set. xmemBuffer is the xmem pointer to a linear array of font bitmaps.
RETURN VALUE
None.
SEE ALSO glPrinf
unsigned long glFontCharAddr(fontInfo *pInfo, char letter);
Returns the xmem address of the character from the specified font set.
PARAMETERS
*pInfo is the xmem address of the bitmap font set. letter is an ASCII character.
RETURN VALUE
xmem address of bitmap character font, column major, and byte-aligned.
SEE ALSO glPutFont, glPrintf
56
RabbitCore RCM3200
void glPutFont(int x, int y, fontInfo *pInfo, char code);
Puts an entry from the font table to the page buffer and on the LCD if the buffer is unlocked. Each font character's bitmap is column major and byte-aligned. Any portion of the bitmap character that is outside the LCD display area will be clipped.
PARAMETERS
x is the x coordinate (column) of the upper left corner of the text. y is the y coordinate (row) of the left top corner of the text. *pInfo is a pointer to the font descriptor. code is the ASCII character to display.
RETURN VALUE
None.
SEE ALSO glFontCharAddr, glPrintf
void glSetPfStep(int stepX, int stepY);
Sets the glPrintf() printing step direction. The x and y step directions are independent signed values. The actual step increments depend on the height and width of the font being displayed, which are multiplied by the step values.
PARAMETERS
stepX is the glPrintf x step value stepY is the glPrintf y step value
RETURN VALUE
None.
SEE ALSO
Use glGetPfStep() to examine the current x and y printing step direction.
int glGetPfStep(void);
Gets the current glPrintf() printing step direction. Each step direction is independent of the other, and is treated as an 8-bit signed value. The actual step increments depends on the height and width of the font being displayed, which are multiplied by the step values.
RETURN VALUE
The x step is returned in the MSB, and the y step is returned in the LSB of the integer result.
SEE ALSO
Use glGetPfStep() to control the x and y printing step direction.
User's Manual
57
void glPutChar(char ch, char *ptr, int *cnt, glPutCharInst *pInst)
Provides an interface between the STDIO string-handling functions and the graphic library. The STDIO string-formatting function will call this function, one character at a time, until the entire formatted string has been parsed. Any portion of the bitmap character that is outside the LCD display area will be clipped.
PARAMETERS
ch is the character to be displayed on the LCD. *ptr is not used, but is a place holder for STDIO string functions. *cnt is not used, is a place holder for STDIO string functions. *pInst is a font descriptor pointer.
RETURN VALUE
None.
SEE ALSO glPrintf, glPutFont, doprnt
void glPrintf(int x, int y, fontInfo *pInfo, char *fmt, ...);
Prints a formatted string (much like printf) on the LCD screen. Only the character codes that exist in the font set are printed, all others are skipped. For example, '\b', '\t', '\n' and '\r' (ASCII backspace, tab, new line, and carriage return, respectively) will be printed if they exist in the font set, but will not have any effect as control characters. Any portion of the bitmap character that is outside the LCD display area will be clipped.
PARAMETERS
x is the x coordinate (column) of the upper left corner of the text. y is the y coordinate (row) of the upper left corner of the text. *pInfo is a font descriptor pointer. *fmt is a formatted string. ... are formatted string conversion parameter(s).
EXAMPLE glprintf(0,0, &fi12x16, "Test %d\n", count); RETURN VALUE
None.
SEE ALSO glXFontInit
58
RabbitCore RCM3200
void glBuffLock(void);
Increments LCD screen locking counter. Graphic calls are recorded in the LCD memory buffer and are not transferred to the LCD if the counter is non-zero.
NOTE: glBuffLock() and glBuffUnlock() can be nested up to a level of 255, but be sure to balance the calls. It is not a requirement to use these procedures, but a set of glBuffLock() and glBuffUnlock() bracketing a set of related graphic calls speeds up the rendering significantly.
RETURN VALUE
None.
SEE ALSO glBuffUnlock, glSwap
void glBuffUnlock(void);
Decrements the LCD screen locking counter. The contents of the LCD buffer are transferred to the LCD if the counter goes to zero.
RETURN VALUE
None.
SEE ALSO glBuffLock, glSwap
void glSwap(void);
Checks the LCD screen locking counter. The contents of the LCD buffer are transferred to the LCD if the counter is zero.
RETURN VALUE
None.
SEE ALSO glBuffUnlock, glBuffLock, _glSwapData (located in the library specifically for the LCD
that you are using)
void glSetBrushType(int type);
Sets the drawing method (or color) of pixels drawn by subsequent graphic calls.
PARAMETER
type value can be one of the following macros. PIXBLACK draws black pixels. PIXWHITE draws white pixels. PIXXOR draws old pixel XOR'ed with the new pixel.
RETURN VALUE
None.
SEE ALSO glGetBrushType
User's Manual
59
int glGetBrushType(void);
Gets the current method (or color) of pixels drawn by subsequent graphic calls.
RETURN VALUE
The current brush type.
SEE ALSO glSetBrushType
void glPlotDot(int x, int y);
Draws a single pixel in the LCD buffer, and on the LCD if the buffer is unlocked. If the coordinates are outside the LCD display area, the dot will not be plotted.
PARAMETERS
x is the x coordinate of the dot. y is the y coordinate of the dot.
RETURN VALUE
None.
SEE ALSO glPlotline, glPlotPolygon, glPlotCircle
void glPlotLine(int x0, int y0, int x1, int y1);
Draws a line in the LCD buffer, and on the LCD if the buffer is unlocked. Any portion of the line that is beyond the LCD display area will be clipped.
PARAMETERS
x0 is the x coordinate of one endpoint of the line. y0 is the y coordinate of one endpoint of the line. x1 is the x coordinate of the other endpoint of the line. y1 is the y coordinate of the other endpoint of the line.
RETURN VALUE
None.
SEE ALSO glPlotDot, glPlotPolygon, glPlotCircle
60
RabbitCore RCM3200
void glLeft1(int left, int top, int cols, int rows);
Scrolls byte-aligned window left one pixel, right column is filled by current pixel type (color).
PARAMETERS
left is the upper left corner of bitmap, must be evenly divisible by 8. top is the left top corner of the bitmap. cols is the number of columns in the window, must be evenly divisible by 8. rows is the number of rows in the window.
RETURN VALUE
None.
SEE ALSO glHScroll, glRight1
void glRight1(int left, int top, int cols, int rows);
Scrolls byte-aligned window right one pixel, left column is filled by current pixel type (color).
PARAMETERS
left is the upper left corner of bitmap, must be evenly divisible by 8. top is the left top corner of the bitmap. cols is the number of columns in the window, must be evenly divisible by 8. rows is the number of rows in the window.
RETURN VALUE
None.
SEE ALSO glHScroll, glLeft1
void glUp1(int left, int top, int cols, int rows);
Scrolls byte-aligned window up one pixel, bottom column is filled by current pixel type (color).
PARAMETERS
left is the upper left corner of bitmap, must be evenly divisible by 8. top is the left top corner of the bitmap. cols is the number of columns in the window, must be evenly divisible by 8. rows is the number of rows in the window.
RETURN VALUE
None.
SEE ALSO glVScroll, glDown1
User's Manual
61
void glDown1(int left, int top, int cols, int rows);
Scrolls byte-aligned window down one pixel, top column is filled by current pixel type (color).
PARAMETERS
left is the upper left corner of bitmap, must be evenly divisible by 8. top is the left top corner of the bitmap. cols is the number of columns in the window, must be evenly divisible by 8. rows is the number of rows in the window.
RETURN VALUE
None.
SEE ALSO glVScroll, glUp1
void glHScroll(int left, int top, int cols, int rows, int nPix);
Scrolls right or left, within the defined window by x number of pixels. The opposite edge of the scrolled window will be filled in with white pixels. The window must be byte-aligned. Parameters will be verified for the following: 1. The left and cols parameters will be verified that they are evenly divisible by 8. If not, they will be changed to a value that is a multiple of 8. 2. Parameters will be checked to verify that the scrolling area is valid. The minimum scrolling area is a width of 8 pixels and a height of one row.
PARAMETERS
left is the upper left corner of bitmap, must be evenly divisible by 8. top is the left top corner of the bitmap. cols is the number of columns in the window, must be evenly divisible by 8. rows is the number of rows in the window. nPix is the number of pixels to scroll within the defined window (a negative value will produce a scroll to the left).
RETURN VALUE
None.
SEE ALSO glVScroll
62
RabbitCore RCM3200
void glVScroll(int left, int top, int cols, int rows, int nPix);
Scrolls up or down, within the defined window by x number of pixels. The opposite edge of the scrolled window will be filled in with white pixels. The window must be byte-aligned. Parameters will be verified for the following: 1. The left and cols parameters will be verified that they are evenly divisible by 8. If not, they will be changed to a value that is a multiple of 8. 2. Parameters will be checked to verify that the scrolling area is valid. The minimum scrolling area is a width of 8 pixels and a height of one row.
PARAMETERS
left is the upper left corner of bitmap, must be evenly divisible by 8. top is the left top corner of the bitmap. cols is the number of columns in the window, must be evenly divisible by 8. rows is the number of rows in the window. nPix is the number of pixels to scroll within the defined window (a negative value will produce a scroll up).
RETURN VALUE
None.
SEE ALSO glHScroll
void glXPutBitmap(int left, int top, int width, int height, unsigned long bitmap);
Draws bitmap in the specified space. The data for the bitmap are stored in xmem. This function calls glXPutFastmap automatically if the bitmap is byte-aligned (the left edge and the width are each evenly divisible by 8). Any portion of a bitmap image or character that is outside the LCD display area will be clipped.
PARAMETERS
left is the upper left corner of the bitmap. top is the upper left corner of the bitmap. width is the width of the bitmap. height is the height of the bitmap. bitmap is the address of the bitmap in xmem.
RETURN VALUE
None.
SEE ALSO glXPutFastmap, glPrintf
User's Manual
63
void glXPutFastmap(int left, int top, int width, int height, unsigned long bitmap);
Draws bitmap in the specified space. The data for the bitmap are stored in xmem. This function is like glXPutBitmap, except that it is faster. The restriction is that the bitmap must be byte-aligned. Any portion of a bitmap image or character that is outside the LCD display area will be clipped.
PARAMETERS
left is the upper left corner of the bitmap, must be evenly divisible by 8. top is the upper left corner of the bitmap. width is the width of the bitmap, must be evenly divisible by 8. height is the height of the bitmap. bitmap is the address of the bitmap in xmem.
RETURN VALUE
None.
SEE ALSO glXPutBitmap, glPrintf
int TextWindowFrame(windowFrame *window, fontInfo *pFont, int x, int y, int winWidth, int winHeight)
Defines a text-only display window. This function provides a way to display characters within the text window using only character row and column coordinates. The text window feature provides end-of-line wrapping and clipping after the character in the last column and row is displayed.
NOTE: Execute the TextWindowFrame function before other Text... functions.
PARAMETERS
*window is a window frame descriptor pointer. *pFont is a font descriptor pointer. x is the x coordinate of where the text window frame is to start. y is the y coordinate of where the text window frame is to start. winWidth is the width of the text window frame. winHeight is the height of the text window frame.
RETURN VALUE
0--window frame was successfully created. -1--x coordinate + width has exceeded the display boundary. -2--y coordinate + height has exceeded the display boundary.
64
RabbitCore RCM3200
void TextGotoXY(windowFrame *window, int col, int row);
Sets the cursor location on the display of where to display the next character. The display location is based on the height and width of the character to be displayed.
NOTE: Execute the TextWindowFrame function before using this function.
PARAMETERS
*window is a pointer to a font descriptor. col is a character column location. row is a character row location.
RETURN VALUE
None.
SEE ALSO TextPutChar, TextPrintf, TextWindowFrame
void TextCursorLocation(windowFrame *window, int *col, int *row);
Gets the current cursor location that was set by a Graphic Text... function.
NOTE: Execute the TextWindowFrame function before using this function.
PARAMETERS
*window is a pointer to a font descriptor. *col is a pointer to cursor column variable. *row is a pointer to cursor row variable.
RETURN VALUE
Lower word = Cursor Row location Upper word = Cursor Column location
SEE ALSO TextGotoXY, TextPrintf, TextWindowFrame, TextCursorLocation
void TextPutChar(struct windowFrame *window, char ch);
Displays a character on the display where the cursor is currently pointing. If any portion of a bitmap character is outside the LCD display area, the character will not be displayed.
NOTE: Execute the TextWindowFrame function before using this function.
PARAMETERS
*window is a pointer to a font descriptor. ch is a character to be displayed on the LCD.
RETURN VALUE
None.
SEE ALSO TextGotoXY, TextPrintf, TextWindowFrame, TextCursorLocation
User's Manual
65
void TextPrintf(struct windowFrame *window, char *fmt, ...);
Prints a formatted string (much like printf) on the LCD screen. Only printable characters in the font set are printed, also escape sequences, '\r' and '\n' are recognized. All other escape sequences will be skipped over; for example, '\b' and 't' will print if they exist in the font set, but will not have any effect as control characters. The text window feature provides end-of-line wrapping and clipping after the character in the last column and row is displayed.
NOTE: Execute the TextWindowFrame function before using this function.
PARAMETERS
*window is a pointer to a font descriptor. *fmt is a formatted string. ... are formatted string conversion parameter(s).
EXAMPLE TextPrintf(&TextWindow, "Test %d\n", count); RETURN VALUE
None.
SEE ALSO TextGotoXY, TextPutChar, TextWindowFrame, TextCursorLocation
66
RabbitCore RCM3200
C.7.3 Keypad The functions used to control the keypad are contained in the KEYPAD7.LIB library located in the Dynamic C KEYPADS library directory.
void keyInit(void);
Initializes keypad process
RETURN VALUE
None.
SEE ALSO brdInit
void keyConfig(char cRaw, char cPress, char cRelease, char cCntHold, char cSpdLo, char cCntLo, char cSpdHi);
Assigns each key with key press and release codes, and hold and repeat ticks for auto repeat and debouncing.
PARAMETERS
cRaw is a raw key code index. 1x7 keypad matrix with raw key code index assignments (in brackets): [0] [4] User Keypad Interface cPress is a key press code An 8-bit value is returned when a key is pressed. 0 = Unused. See keypadDef() for default press codes. cRelease is a key release code. An 8-bit value is returned when a key is pressed. 0 = Unused. cCntHold is a hold tick. How long to hold before repeating. 0 = No Repeat. cSpdLo is a low-speed repeat tick. How many times to repeat. 0 = None. cCntLo is a low-speed hold tick. How long to hold before going to high-speed repeat. 0 = Slow Only.
User's Manual 67
[1] [5]
[2] [6]
[3]
cSpdHi is a high-speed repeat tick. How many times to repeat after low speed repeat. 0 = None.
RETURN VALUE
None.
SEE ALSO keyProcess, keyGet, keypadDef
void keyProcess(void);
Scans and processes keypad data for key assignment, debouncing, press and release, and repeat.
NOTE: This function is also able to process an 8 x 8 matrix keypad.
RETURN VALUE
None
SEE ALSO keyConfig, keyGet, keypadDef
char keyGet(void);
Get next keypress
RETURN VALUE
The next keypress, or 0 if none
SEE ALSO keyConfig, keyProcess, keypadDef
int keyUnget(char cKey);
Push keypress on top of input queue
PARAMETER
cKey
RETURN VALUE
None.
SEE ALSO keyGet
68
RabbitCore RCM3200
void keypadDef();
Configures the physical layout of the keypad with the desired ASCII return key codes. Keypad physical mapping 1 x 7 0 ['L'] ['-'] 4 1 ['U'] ['+'] 5 2 ['D'] ['E'] 6 3 ['R']
where 'E' represents the ENTER key 'D' represents Down Scroll 'U' represents Up Scroll 'R' represents Right Scroll 'L' represents Left Scroll Example: Do the followingfor the above physical vs. ASCII return key codes.
keyConfig keyConfig keyConfig keyConfig keyConfig keyConfig keyConfig ( ( ( ( ( ( ( 3,'R',0, 6,'E',0, 2,'D',0, 4,'-',0, 1,'U',0, 5,'+',0, 0,'L',0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 0 0 0 0 0 0 ); ); ); ); ); ); );
Characters are returned upon keypress with no repeat.
RETURN VALUE
None.
SEE ALSO keyConfig, keyGet, keyProcess
void keyScan(char *pcKeys);
Writes "1" to each row and reads the value. The position of a keypress is indicated by a zero value in a bit position. PARAMETER *pcKeys is the address of the value read.
RETURN VALUE
None.
SEE ALSO keyConfig, keyGet, keypadDef, keyProcess
User's Manual
69
C.8 Sample Programs
Sample programs illustrating the use of the LCD/keypad module with the Prototyping Board are provided in the SAMPLES\RCM3200 directory. These sample programs use the auxiliary I/O bus on the Rabbit 3000 chip, and so the #define PORTA_AUX_IO line is already included in the sample programs.
70
RabbitCore RCM3200
APPENDIX D. POWER SUPPLY
Appendix D provides information on the current requirements of the RCM3200, and includes some background on the chip select circuit used in power management. D.1 Power Supplies
The RCM3200 requires a regulated 3.3 V 0.15 V DC power source. The RabbitCore design presumes that the voltage regulator is on the user board, and that the power is made available to the RCM3200 board through header J2. An RCM3200 with no loading at the outputs operating at 29.4 MHz typically draws 145 mA. The RCM3200 will consume an additional 10 mA when the programming cable is used to connect the programming header, J3, to a PC. D.1.1 Battery-Backup Circuits The RCM3200 does not have a battery, but there is provision for a customer-supplied battery to back up the data SRAM and keep the internal Rabbit 3000 real-time clock running. Header J2, shown in Figure D-1, allows access to the external battery. This header makes it possible to connect an external 3 V power supply. This allows the SRAM and the internal Rabbit 3000 real-time clock to retain data with the RCM3200 powered down.
J2
VRAM 29 +3.3V
31 30
External Battery
VBAT_EXT GND
32
Figure D-1. External Battery Connections at Header J5
A lithium battery with a nominal voltage of 3 V and a minimum capacity of 165 mA*h is recommended. A lithium battery is strongly recommended because of its nearly constant nominal voltage over most of its life.
User's Manual 71
The drain on the battery by the RCM3200 is typically 12 A when no other power is supplied. If a 165 mA*h battery is used, the battery can last almost 2 years:
165 mA*h ----------------------- = 1.6 years. 12 A
The actual life in your application will depend on the current drawn by components not on the RCM3200 and the storage capacity of the battery. Note that the shelf life of a lithium ion battery is ultimately 10 years. The RCM3200 does not drain the battery while it is powered up normally. D.1.2 Reset Generator The RCM3200 uses a reset generator to reset the Rabbit 3000 microprocessor when the voltage drops below the voltage necessary for reliable operation. The reset occurs between 2.85 V and 3.00 V, typically 2.93 V. The RCM3200 has a reset output, pin 1 on header J2.
D.2 Optional +5 V Output
The RCM3200 boards have an onboard charge pump that provides the +5 V needed by the RealTek Ethernet chip.
72
RabbitCore RCM3200
APPENDIX E. PROGRAMMING CABLE
Appendix E provides additional information for the Rabbit 3000(R) microprocessor when using the DIAG and PROG connectors on the programming cable. The PROG connector is used only when the programming cable is attached to the programming connector (header J3) while a new application is being developed. Otherwise, the DIAG connector on the programming cable allows the programming cable to be used as an RS-232 to CMOS level converter for serial communication, which is appropriate for monitoring or debugging a RabbitCore system while it is running.
User's Manual
73
The programming port, which is shown in Figure E-1, can serve as a convenient communications port for field setup or other occasional communication need (for example, as a diagnostic port). If the port is simply to perform a setup function, that is, write setup information to flash memory, then the controller can be reset through the programming port and a cold boot performed to start execution of a special program dedicated to this functionality.
PROGRAMMING PORT PIN ASSIGNMENTS
(Rabbit LQFP pins are shown in parenthesis)
1. 2. 3. 4. 5. 6. 7. 8. 9. RXA (66) GND CKLKA (117) +5 V/+3 V /RESET TXA (67) n.c. STATUS (output) (4) SMODE0 (45)
~50 kW 1 3 5 7 9 2 4 6 8 10
+ + +
~50 kW ~10 kW
Programming Port Pin Numbers
~50 kW ~50 kW
GND GND
10. SMODE1 (44)
Figure E-1. Programming Port Pin Assignments
When the PROG connector is used, the /RESET line can be asserted by manipulating DTR and the STATUS line can be read as DSR on the serial port. The target can be restarted by pulsing reset and then, after a short delay, sending a special character string at 2400 bps. To simply restart the BIOS, the string 80h, 24h, 80h can be sent. When the BIOS is started, it can tell whether the programming cable is connected because the SMODE1 and SMODE0 pins are sensed as being high. Alternatively, the DIAG connector can be used to connect the programming port. The /RESET line and the SMODE1 and SMODE0 pins are not connected to this connector. The programming port is then enabled as a diagnostic port by polling the port periodically to see if communication needs to begin or to enable the port and wait for interrupts. The pull-up resistors on RXA and CLKA prevent spurious data reception that might take place if the pins floated. If the clocked serial mode is used, the serial port can be driven by having two toggling lines that can be driven and one line that can be sensed. This allows a conversation with a device that does not have an asynchronous serial port but that has two output signal lines and one input signal line. The line TXA (also called PC6) is zero after reset if the cold-boot mode is not enabled. A possible way to detect the presence of a cable on the programming port is for the cable to connect TXA to one of the SMODE pins and then test for the connection by raising PC6 (by configuring it as a general output bit) and reading the SMODE pin after the cold-boot mode has been disabled. The value of the SMODE pin is read from the SPCR register.
74
RabbitCore RCM3200
Once you establish that the programming port will never again be needed for programming, it is possible to use the programming port for additional I/O lines. Table E-1 lists the pins available for this alternate configuration.
Table E-1. RCM3200 Programming Port Pinout Configurations
Pin 1 2 3 4 Header J3 5 6 8 9 10 Pin Name RXA GND CLKA VCC RESET TXA STATUS SMODE0 SMODE1 Serial Port A PC6--Output Output Input Input Must be low when RCM3200 boots up Must be low when RCM3200 boots up Connected to reset generator U4 PB1--Bitwise or parallel programmable input Default Use Serial Port A Alternate Use PC7--Input Notes
User's Manual
75
76
RabbitCore RCM3200
APPENDIX F. MOTOR CONTROL OPTION
The Prototyping Board has a header at J6 for a motor control option. While Z-World and Rabbit Semiconductor do not support this option at this time, this appendix provides additional information about Parallel Port F on the Rabbit 3000 microprocessor to enable you to use this feature on the Prototyping Board for your needs.
F.1 Overview
The Parallel Port F connector on the Prototyping Board, J6, gives access to all 8 pins of Parallel Port F, along with +5 V. This appendix describes the function of each pin, and the ways they may be used for motion-control applications. It should be read in conjunction with the Rabbit 3000 Microprocessor User's Manual and the RCM3200 and the Prototyping Board schematics.
User's Manual
77
F.2 Header J6
The connector is a 2 x 5, 0.1" pitch header suitable for connecting to a IDC receptacle, with the following pin allocations.
Table F-1. Prototyping Board Header J6 Pinout
Pin 1 2 3 4 5 6 7 8 9 10 Rabbit 3000 Parallel Port F, bit 0 Parallel Port F, bit 1 Parallel Port F, bit 2 Parallel Port F, bit 3 Parallel Port F, bit 4 Parallel Port F, bit 5 Parallel Port F, bit 6 Parallel Port F, bit 7 +5 V 0V Primary Function General-purpose I/O port General-purpose I/O port General-purpose I/O port General-purpose I/O port Alternate Function 1 Alternate Function 2 Quadrature decoder 1 Q SCLK_D input Quadrature decoder 1 I input SCLK_C
Quadrature decoder 2 Q input Quadrature decoder 2 I input Quadrature decoder 1 Q input Quadrature decoder 1 I input Quadrature decoder 2 Q input Quadrature decoder 2 I input
General-purpose I/O port PWM[0] output General-purpose I/O port PWM[1] output General-purpose I/O port PWM[2] output General-purpose I/O port PWM[3] output External buffer logic supply Common
All Parallel Port F lines (pins 1 to 8) are pulled up internally to +3.3 V via 100 k resistors. When used as outputs, the port pins will sink up to 6 mA at a VOL of 0.4 V max. (0.2 V typ), and source up to 6 mA at a VOH of 2.2 V typ. When used as inputs, all pins are 5 V tolerant. As the outputs from Parallel Port F are compatible with 3.3 V logic, buffers may be needed when the external circuit drive requirements exceed the 2.2 V typ logic high and/or the 6 mA maximum from the Rabbit 3000. The +5 V supply output is provided for supplying interface logic. When used as inputs, the pins on header J6 do not require buffers unless the input voltage will exceed the 5 V tolerance of the processor pins. Usually, a simple resistive divider with catching diodes will suffice if higher voltage inputs are required. If the outputs are configured for open-drain operation, they may be pulled up to +5 V (while observing the maximum current, of course).
78
RabbitCore RCM3200
F.3 Using Parallel Port F
Parallel Port F is a byte-wide port with each bit programmable for data direction and drive. These are simple inputs and outputs controlled and reported in the Port F Data Register. As outputs, the bits of the port are buffered, with the data written to the Port F Data Register transferred to the output pins on a selected timing edge. The outputs of Timer A1, Timer B1, or Timer B2 can be used for this function, with each nibble of the port having a separate select field to control this timing. These inputs and outputs are also used for access to other peripherals on the chip. As outputs, Parallel Port F can carry the four Pulse Width Modulator outputs on PF4-PF 7 (J6, pins 5-8). As inputs, Parallel Port F can carry the inputs to the Quadrature Decoders on PF0-PF3 (J6, pins 1-4). When Serial Port C or Serial Port D is used in clocked serial mode, two pins of Port F (PF0 / J6:1 and PF1 / J6:2) are used to carry the serial clock signals. When the internal clock is selected in these serial ports, the corresponding bit of Parallel Port F is set as an output. F.3.1 Parallel Port F Registers Data Direction Register--PFDDR, address 00111111 (0x3F), write-only, default value on reset 00000000. For each bit position, write a 1 to make the corresponding port line an output, or 0 to produce an input. Drive Control Register--PFDCR, address 00111110 (0x3E), Write-only, no default on reset (port defaults to all inputs). Effective only if the corresponding port bits are set as outputs, each bit set to 1 configures the corresponding port bit as open drain. Setting the bit to 0 configures that output as active high or low. Function Register--PFFR, address 00111101 (0x3D), Write-only, no default on reset. This register sets the alternate output function assigned to each of the pins of the port. When set to 0, the corresponding port pin functions normally as an output (if configured to be an output in PFDDR). When set to 1, each bit sets the corresponding pin to have the alternate output function as shown in the summary table at the end of this section. Control Register--PFCR, address 00111100 (0x3C), Write-only, default on reset xx00xx00. This register sets the transfer clock, which controls the timing of the outputs on each nibble of the output ports to allow close synchronization with other events. The summary table at the end of this section shows the settings for this register. The default values on reset transfer the output values on CLK/2. Data Register--PFDR, address 00111000 (0x38), Read or Write, no default value on reset. On read, the current state of the pins is reported. On write, the output buffer is written with the value for transfer to the output port register on the next rising edge of the transfer clock, set in the PFCR.
User's Manual
79
Table F-2. Parallel Port F Registers
Register Name Port F Data Register Bits 0:7 Mnemonic PFDR Value Read Write Port F Control Register Bits 0:1 00 01 10 11 2:3 4:5 xx 00 01 10 11 6:7 Port F Function Register Bits 0:7 0 1 2:3 4 5 6 7 Port F Drive Control Register Bits 0:7 0 1
80
I/O Address 00111000 (0x38)
R/W R/W Description
Reset Value xxxxxxxx
Current state of pins Port buffer. Value transferred to O/P register on next rising edge of transfer clock. 00111100 (0x3C) W only Description Lower nibble transfer clock is CLK/2 Lower nibble transfer clock is Timer A1 Lower nibble transfer clock is Timer B1 Lower nibble transfer clock is Timer B2 These bits are ignored Upper nibble transfer clock is CLK/2 Upper nibble transfer clock is Timer A1 Upper nibble transfer clock is Timer B1 Upper nibble transfer clock is Timer B2 These bits are ignored 00111101 (0x3D) W Description Corresponding port bits function normally Bit 0 carries SCLK_D Bit 1 carries SCLK_C No effect Bit 4 carries PWM[0] output Bit 5 carries PWM[1] output Bit 6 carries PWM[2] output Bit 7 carries PWM[3] output 00111110 (0x3E) W Description Corresponding port bit is active high or low Corresponding port bit is open drain
RabbitCore RCM3200
PFCR Value
xx00xx00
xx PFFR Value 0 1 1 x 1 1 1 1 PFDCR Value
xxxxxxxx
xxxxxxxx
Table F-2. Parallel Port F Registers (continued)
Register Name Port F Data Direction Register Bits 0:7 0 1 Mnemonic PFDDR Value I/O Address 00111111 (0x3F) W Description Corresponding port bit is an input Corresponding port bit is an output R/W Reset Value 00000000
User's Manual
81
F.4 PWM Outputs
The Pulse-Width Modulator consists of a 10-bit free-running counter and four width registers. Each PWM output is high for n + 1 counts out of the 1024-clock count cycle, where n is the value held in the width register. The PWM output high time can optionally be spread throughout the cycle to reduce ripple on the externally filtered PWM output. The PWM is clocked by the output of Timer A9. The spreading function is implemented by dividing each 1024-clock cycle into four quadrants of 256 clocks each. Within each quadrant, the Pulse-Width Modulator uses the eight MSBs of each pulse-width register to select the base width in each of the quadrants. This is the equivalent to dividing the contents of the pulsewidth register by four and using this value in each quadrant. To get the exact high time, the Pulse-Width Modulator uses the two LSBs of the pulse-width register to modify the high time in each quadrant according to Table F-3 below. The "n/4" term is the base count, and is formed from the eight MSBs of the pulse-width register.
Table F-3. PWM Outputs
Pulse Width LSBs 00 01 10 11 1st n/4 + 1 n/4 + 1 n/4 + 1 n/4 + 1 n/4 n/4 n/4 + 1 n/4 + 1 2nd n/4 n/4 + 1 n/4 + 1 n/4 + 1 3rd n/4 n/4 n/4 n/4 + 1 4th
The diagram below shows a PWM output for several different width values for both modes of operation. Operation in the spread mode reduces the filtering requirements on the PWM output in most cases.
n=255, normal n=255, spread
(256 counts)
(64 counts)
(64 counts)
(64 counts)
(64 counts)
n=256, spread n=257, spread n=258, spread n=259, spread n=259, normal
(65 counts)
(64 counts)
(64 counts)
(64 counts)
(65 counts)
(64 counts)
(65 counts)
(64 counts)
(65 counts)
(65 counts)
(65 counts)
(64 counts)
(65 counts)
(65 counts)
(65 counts)
(65 counts)
(260 counts)
Figure F-1. PWM Outputs for Various Normal and Spread Modes
82 RabbitCore RCM3200
F.5 PWM Registers
There are no default values on reset for any of the PWM registers.
Table F-4. PWM Registers
PWM LSBs Register PWL0R PWL1R PWL2R PWL3R Bit(s) 7:6 5:1 0 0 1 PWM MSB x Register PWM0R PWM1R PWM2R PWM3R Bit(s) Value Value Write 10001000 (0x88) 10001010 (0x8A) 10001100 (0x8C) 10001110 (0x8E) Description The least significant two bits for the Pulse Width Modulator count are stored These bits are ignored. PWM output High for single block. Spread PWM output throughout the cycle Address Address = 10001001 (0x89) Address = 10001011 (0x8B) Address = 10001101 (0x8D) Address = 10001111 (0x8F) Description The most significant eight bits for the Pulse-Width Modulator count are stored With a count of n, the PWM output will be high for n +1 clocks out of the 1024 clocks of the PWM counter. Address
7:0
write
User's Manual
83
F.6 Quadrature Decoder
The two-channel Quadrature Decoder accepts inputs via Parallel Port F from two external optical incremental encoder modules. Each channel of the Quadrature Decoder accepts an in-phase (I) and a quadrature-phase (Q) signal, and provides 8-bit counters to track shaft rotation and provide interrupts when the count goes through the zero count in either direction. The Quadrature Decoder contains digital filters on the inputs to prevent false counts and is clocked by the output of Timer A10. Each Quadrature Decoder channel accepts inputs from either the upper nibble or lower nibble of Parallel Port F. The I signal is input on an odd-numbered port bit, while the Q signal is input on an even-numbered port bit. There is also a disable selection, which is guaranteed not to generate a count increment or decrement on either entering or exiting the disable state. The operation of the counter as a function of the I and Q inputs is shown below.
I input Q input Counter 00 01 02 03 04 05 06 07 08 07 06 05 04 03 02 01 00 FF Interrupt
Figure F-2. Operation of Quadrature Decoder Counter
The Quadrature Decoders are clocked by the output of Timer A10, giving a maximum clock rate of one-half of the peripheral clock rate. The time constant of Timer A10 must be fast enough to sample the inputs properly. Both the I and Q inputs go through a digital filter that rejects pulses shorter than two clock periods wide. In addition, the clock rate must be high enough that transitions on the I and Q inputs are sampled in different clock cycles. The Input Capture (see the Rabbit 3000 Microprocessor Users Manual) may be used to measure the pulse width on the I inputs because they come from the odd-numbered port bits. The operation of the digital filter is shown below.
Peri Clock
Timer A10
Rejected
Accepted
84
RabbitCore RCM3200
The Quadrature Decoder generates an interrupt when the counter increments from 0x00 to 0x01 or when the counter decrements from 0x00 to 0xFF. Note that the status bits in the QDCSR are set coincident with the interrupt, and the interrupt (and status bits) are cleared by reading the QDCSR.
Table F-5. Quadrature Decoder Registers
Register Name Quad Decode Control/Status Register Bit 7 (rd-only) 0 1 6 (rd-only) 0 1 5 4 (wr-only) 0 0 1 3 (rd-only) 0 1 2 (rd-only) 0 1 1 Bit 0 (wr-only) 0 1 0 Value Mnemonic QDCSR Value 10010000 (0x90) Description Quadrature Decoder 2 did not increment from 0xFF. Quadrature Decoder 2 incremented from 0xFF to 0x00. This bit is cleared by a read of this register. Quadrature Decoder 2 did not decrement from 0x00. Quadrature Decoder 2 decremented from 0x00 to 0xFF. This bit is cleared by a read of this register This bit always reads as zero. No effect on the Quadrature Decoder 2. Reset Quadrature Decoder 2 to 0x00, without causing an interrupt. Quadrature Decoder 1 did not increment from 0xFF. Quadrature Decoder 1 incremented from 0xFF to 0x00. This bit is cleared by a read of this register. Quadrature Decoder 1 did not decrement from 0x00. Quadrature Decoder 1 decremented from 0x00 to 0xFF. This bit is cleared by a read of this register. This bit always reads as zero. Description No effect on the Quadrature Decoder 1. Reset Quadrature Decoder 1 to 0x00, without causing an interrupt. Address
User's Manual
85
Table F-5. Quadrature Decoder Registers (continued)
Register Name Quad Decode Control Register Bit 7:6 0x Mnemonic QDCR Value Address Address = 10010001 (0x91) Description Disable Quadrature Decoder 2 inputs. Writing a new value to these bits will not cause Quadrature Decoder 2 to increment or decrement. Quadrature Decoder 2 inputs from Port F bits 3 and 2. Quadrature Decoder 2 inputs from Port F bits 7 and 6. These bits are ignored. Disable Quadrature Decoder 1 inputs. Writing a new value to these bits will not cause Quadrature Decoder 1 to increment or decrement. Quadrature Decoder 1 inputs from Port F bits 1 and 0. Quadrature Decoder 1 inputs from Port F bits 5 and 4. Quadrature Decoder interrupts are disabled. Quadrature Decoder interrupt use Interrupt Priority 1. Quadrature Decoder interrupt use Interrupt Priority 2. Quadrature Decoder interrupt use Interrupt Priority 3. Address = 10010100 (0x94) Address = 10010110 (0x96) Description The current value of the Quadrature Decoder counter is reported.
10 11 5:4 3:2 xx 0x
10 11 1:0 0 1 10 11 Quad Decode Count Register QDC1R (QDC2R) Bit(s) 7:0 Value read
86
RabbitCore RCM3200
NOTICE TO USERS
Z-WORLD PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFESUPPORT DEVICES OR SYSTEMS UNLESS A SPECIFIC WRITTEN AGREEMENT REGARDING SUCH INTENDED USE IS ENTERED INTO BETWEEN THE CUSTOMER AND Z-WORLD PRIOR TO USE. Life-support devices or systems are devices or systems intended for surgical implantation into the body or to sustain life, and whose failure to perform, when properly used in accordance with instructions for use provided in the labeling and user's manual, can be reasonably expected to result in significant injury. No complex software or hardware system is perfect. Bugs are always present in a system of any size. In order to prevent danger to life or property, it is the responsibility of the system designer to incorporate redundant protective mechanisms appropriate to the risk involved. All Z-World products are 100 percent functionally tested. Additional testing may include visual quality control inspections or mechanical defects analyzer inspections. Specifications are based on characterization of tested sample units rather than testing over temperature and voltage of each unit. Z-World products may qualify components to operate within a range of parameters that is different from the manufacturer's recommended range. This strategy is believed to be more economical and effective. Additional testing or burn-in of an individual unit is available by special arrangement.
User's Manual
87
88
RabbitCore RCM3200
INDEX
A
additional information Getting Started manual ....... 3 online documentation .......... 3 auxiliary I/O bus ................... 11
F
features .................................... 1 flash memory addresses user blocks ........................ 16
M
manuals ................................... 3 motor control option quadrature decoder ............ 84 mounting instructions LCD/keypad module ......... 46
I
I/O address assignments LCD/keypad module ......... 45 I/O buffer sourcing and sinking limits ............................. 32
B
battery backup battery life ......................... 72 external battery connections .............................. 71 reset generator ................... 72 bus loading ............................ 28
P
physical mounting ................. 27 pinout Ethernet port ..................... 12 LCD/keypad module ......... 45 programming cable ........... 74 Prototyping Board ............. 38 RCM3200 alternate configurations ................................. 8, 75 RCM3200 headers .............. 6 power supplies +3.3 V ............................... 71 battery backup ................... 71 optional +5 V output ......... 72 Program Mode ...................... 14 switching modes ............... 14 programming cable ......... 73, 77 DIAG connector ................ 74 pinout ................................ 74 programming port ................. 13 alternate pinout configurations .............................. 75 used as diagnostic port ...... 74 via motherboard ................ 13 Prototyping Board adding RS-232 transceiver 39 dimensions ........................ 36 J6 pinout ............................ 78 pinout ................................ 38 power supply ..................... 37 prototyping area ................ 38 specifications .................... 37 PWM outputs ........................ 82 PWM registers ...................... 83
89
J
jumper configurations ........... 34 JP1 (auxiliary I/O data bus) 34 JP2 (program execution SRAM size) .................. 34 JP3 (flash memory size) .... 34 JP4 (flash memory bank select) ......................... 16, 34 JP5 (data SRAM size) ....... 34 jumper locations ................ 34
C
clock doubler ........................ 15 conformal coating ................. 33
D
Development Kit RCM3200 ............................ 2 digital I/O ................................ 6 I/O buffer sourcing and sinking limits ....................... 32 memory interface .............. 11 SMODE0 .................... 11, 13 SMODE1 .................... 11, 13 dimensions LCD/keypad module ......... 41 LCD/keypad template ....... 44 Prototyping Board ............. 36 RCM3200 .......................... 24 Dynamic C ............................ 17 telephone-based technical support ................................ 21 upgrades and patches ........ 21
K
keypad template .................... 44 removing and inserting label ................................. 44
L
LCD/keypad module bezel-mount installation .... 47 dimensions ........................ 41 header pinout ..................... 45 I/O address assignments .... 45 keypad template ................ 44 mounting instructions ....... 46 remote cable connection ... 49 removing and inserting keypad label .............................. 44 sample programs ............... 70 voltage settings ................. 43
E
Ethernet port ......................... 12 pinout ................................ 12 exclusion zone ...................... 25
User's Manual
Q
quadrature decoder ................84 quadrature decoder registers .85
R
Rabbit 3000 data and clock delays .........30 Parallel Port F Registers ....79 Parallel Port F registers .....80 PWM outputs .....................82 PWM registers ...................83 quadrature decoder registers .................................85 spectrum spreader time delays ........................................30 Rabbit subsystems ...................7 Run Mode ..............................14 switching modes ................14
S
sample programs LCD/keypad module .........70 serial communication ............12 serial ports .............................12 Ethernet port ......................12 programming port ..............13 software auxiliary I/O bus ....11, 19, 50 board initialization .............18 brdInit ............................18 I/O drivers .........................19 keypad keyConfig ......................67 keyGet ...........................68 keyInit ............................67 keypadDef .....................69 keyProcess .....................68 keyScan .........................69 keyUnget .......................68
LCD display glBackLight ...................51 glBlankScreen ...............52 glBlock ..........................53 glBuffLock ....................59 glBuffUnlock .................59 glDispOnOff ..................51 glDown1 ........................62 glFillCircle .....................55 glFillPolygon .................55 glFillScreen ...................52 glFillVPolygon ..............54 glFontCharAddr .............56 glGetBrushType ............60 glGetPfStep ...................57 glHScroll .......................62 glInit ..............................51 glLeft1 ...........................61 glPlotCircle ....................55 glPlotDot .......................60 glPlotLine ......................60 glPlotPolygon ................54 glPlotVPolygon .............53 glPrintf ...........................58 glPutChar .......................58 glPutFont .......................57 glRight1 .........................61 glSetBrushType .............59 glSetContrast .................52 glSetPfStep ....................57 glSwap ...........................59 glUp1 .............................61 glVScroll .......................63 glXFontInit ....................56 glXPutBitmap ................63 glXPutFastmap ..............64 TextCursorLocation .......65 TextGotoXY ..................65 TextPrintf .......................66 TextPutChar ...................65 TextWindowFrame ........64
LCD/keypad module ledOut ............................50 LCD/keypad module LEDs 50 libraries PACKET.LIB ................19 RCM3200.LIB ...............50 RCM32xx.LIB ...............18 RS232.LIB .....................19 TCP/IP ...........................19 readUserBlock ...................16 sample programs ...............20 RCM3200 ......................20 TCP/IP ...........................20 serial communication drivers ..................................19 TCP/IP drivers ...................19 writeUserBlock .................16 specifications .........................23 bus loading ........................28 digital I/O buffer sourcing and sinking limits .................32 dimensions .........................24 electrical, mechanical, and environmental ...................26 exclusion zone ...................25 header footprint .................27 headers ...............................27 LCD/keypad module dimensions .....................41 electrical ........................42 mechanical .....................42 temperature ....................42 physical mounting .............27 Prototyping Board .............37 Rabbit 3000 DC characteristics .................................31 Rabbit 3000 timing diagram .. 29 relative pin 1 locations ......27 spectrum spreader .................30 subsystems digital inputs and outputs ....6 switching modes ....................14
90
RabbitCore RCM3200
SCHEMATICS
090-0152 RCM3200 Schematic
www.rabbitsemiconductor.com/documentation/schemat/090-0152.pdf
090-0137 Prototyping Board Schematic
www.rabbitsemiconductor.com/documentation/schemat/090-0137.pdf
090-0156 LCD/Keypad Module Schematic
www.rabbitsemiconductor.com/documentation/schemat/090-0156.pdf
090-0128 Programming Cable Schematic
www.rabbitsemiconductor.com/documentation/schemat/090-0128.pdf
The schematics included with the printed manual were the latest revisions available at the time the manual was last revised. The online versions of the manual contain links to the latest revised schematic on the Web site. You may also use the URL information provided above to access the latest schematics directly.
User's Manual
91


▲Up To Search▲   

 
Price & Availability of RCM3200

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X